mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +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))
|
||||
{
|
||||
//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…
Add table
Add a link
Reference in a new issue