mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 05:23:00 +01:00
Cleanup.
This commit is contained in:
@@ -3648,10 +3648,11 @@ namespace bgfx { namespace d3d9
|
||||
//
|
||||
// GetRenderTargetData (dst must be SYSTEMMEM)
|
||||
|
||||
bool depth = isDepth(TextureFormat::Enum(src.m_textureFormat) );
|
||||
HRESULT hr = m_device->StretchRect(srcSurface
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &srcRect
|
||||
, depth ? NULL : &srcRect
|
||||
, dstSurface
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &dstRect
|
||||
, depth ? NULL : &dstRect
|
||||
, D3DTEXF_NONE
|
||||
);
|
||||
if (FAILED(hr) )
|
||||
|
||||
Reference in New Issue
Block a user