mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Merge pull request #576 from andr3wmac/depth_blit_fix
Fix blit for depth textures.
This commit is contained in:
commit
28ae783664
2 changed files with 3 additions and 3 deletions
|
@ -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) )
|
||||
|
|
Loading…
Reference in a new issue