mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
ScreenShotD3D11 delete fix.
This commit is contained in:
parent
6a40b8bb84
commit
2073a94a7a
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ GBitmap* ScreenShotD3D11::_captureBackBuffer()
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
//cleanup
|
//cleanup
|
||||||
SAFE_DELETE(pData);
|
SAFE_DELETE_ARRAY(pData);
|
||||||
SAFE_RELEASE(pNewTexture);
|
SAFE_RELEASE(pNewTexture);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -88,7 +88,7 @@ GBitmap* ScreenShotD3D11::_captureBackBuffer()
|
||||||
}
|
}
|
||||||
|
|
||||||
//cleanup
|
//cleanup
|
||||||
SAFE_DELETE(pData);
|
SAFE_DELETE_ARRAY(pData);
|
||||||
SAFE_RELEASE(pNewTexture);
|
SAFE_RELEASE(pNewTexture);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue