diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index df860e310..29b5d3925 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -1865,7 +1865,7 @@ BX_PRAGMA_DIAGNOSTIC_POP(); dst += dstPitch; } - m_deviceCtx->Unmap(texture.m_ptr, 0); + m_deviceCtx->Unmap(texture.m_ptr, _mip); } void resizeTexture(TextureHandle _handle, uint16_t _width, uint16_t _height, uint8_t _numMips) BX_OVERRIDE diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index 72ac1e539..1b26f9a91 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -1017,7 +1017,7 @@ namespace bgfx { namespace d3d9 dst += dstPitch; } - DX_CHECK(texture.m_texture2d->UnlockRect(0) ); + DX_CHECK(texture.m_texture2d->UnlockRect(_mip) ); } void resizeTexture(TextureHandle _handle, uint16_t _width, uint16_t _height, uint8_t _numMips) BX_OVERRIDE