mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fix blit for depth textures.
This commit is contained in:
parent
906c8cb255
commit
120ed1c52f
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