mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1571 from rextimmy/ScreenShotD3D11_delete_fix
ScreenShotD3D11 delete fix.
This commit is contained in:
commit
21f5273098
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