This commit is contained in:
Branimir Karadžić
2015-11-19 20:10:51 -08:00
parent 28ae783664
commit 39409696e6
4 changed files with 34 additions and 7 deletions

View File

@@ -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) )