diff --git a/impl11/ddraw/MipmapSurface.cpp b/impl11/ddraw/MipmapSurface.cpp index bfddcf13..f581a396 100644 --- a/impl11/ddraw/MipmapSurface.cpp +++ b/impl11/ddraw/MipmapSurface.cpp @@ -747,20 +747,6 @@ HRESULT MipmapSurface::Unlock( if (this->_mipmapCount == 1) { this->_surface->_d3dTexture->Load(this->_surface->_d3dTexture); - - if (this->_surface->_buffer != nullptr) - { - delete[] this->_surface->_buffer; - this->_surface->_buffer = nullptr; - this->_surface->_bufferSize = 0; - this->_surface->_width = 0; - this->_surface->_height = 0; - - this->_buffer = nullptr; - this->_bufferSize = 0; - this->_width = 0; - this->_height = 0; - } } return DD_OK; diff --git a/impl11/ddraw/TextureSurface.cpp b/impl11/ddraw/TextureSurface.cpp index e5918d63..5be6b2b0 100644 --- a/impl11/ddraw/TextureSurface.cpp +++ b/impl11/ddraw/TextureSurface.cpp @@ -803,15 +803,6 @@ HRESULT TextureSurface::Unlock( if (this->_pixelFormat.dwRGBBitCount == 32 && this->_mipmapCount == 1) { this->_d3dTexture->Load(this->_d3dTexture); - - if (this->_buffer != nullptr) - { - delete[] this->_buffer; - this->_buffer = nullptr; - this->_bufferSize = 0; - this->_width = 0; - this->_height = 0; - } } return DD_OK;