mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
ScreenShotD3D11 delete fix.
This commit is contained in:
parent
6a40b8bb84
commit
2073a94a7a
|
|
@ -52,7 +52,7 @@ GBitmap* ScreenShotD3D11::_captureBackBuffer()
|
|||
if (FAILED(hr))
|
||||
{
|
||||
//cleanup
|
||||
SAFE_DELETE(pData);
|
||||
SAFE_DELETE_ARRAY(pData);
|
||||
SAFE_RELEASE(pNewTexture);
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ GBitmap* ScreenShotD3D11::_captureBackBuffer()
|
|||
}
|
||||
|
||||
//cleanup
|
||||
SAFE_DELETE(pData);
|
||||
SAFE_DELETE_ARRAY(pData);
|
||||
SAFE_RELEASE(pNewTexture);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue