mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
readtextur mip level fix (#956)
This commit is contained in:
committed by
Branimir Karadžić
parent
32f54e51ce
commit
eaea9551fb
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user