mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 21:42:59 +01:00
Merge pull request #576 from andr3wmac/depth_blit_fix
Fix blit for depth textures.
This commit is contained in:
@@ -4901,7 +4901,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
, 0
|
||||
, src.m_ptr
|
||||
, srcZ*src.m_numMips+blit.m_srcMip
|
||||
, &box
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &box
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3649,9 +3649,9 @@ namespace bgfx { namespace d3d9
|
||||
// GetRenderTargetData (dst must be SYSTEMMEM)
|
||||
|
||||
HRESULT hr = m_device->StretchRect(srcSurface
|
||||
, &srcRect
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &srcRect
|
||||
, dstSurface
|
||||
, &dstRect
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &dstRect
|
||||
, D3DTEXF_NONE
|
||||
);
|
||||
if (FAILED(hr) )
|
||||
|
||||
Reference in New Issue
Block a user