mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-14 09:50:48 +00:00
Merge pull request #2269 from Azaezel/poutyProfiler2
alternative to #2268 : remove secondary profiling
This commit is contained in:
commit
656c052d32
1 changed files with 2 additions and 5 deletions
|
|
@ -203,8 +203,6 @@ bool GFXD3D11TextureObject::copyToBmp(GBitmap* bmp)
|
||||||
// unsupported
|
// unsupported
|
||||||
AssertFatal(false, "GFXD3D11TextureObject::copyToBmp - unsupported bitmap format");
|
AssertFatal(false, "GFXD3D11TextureObject::copyToBmp - unsupported bitmap format");
|
||||||
|
|
||||||
PROFILE_START(GFXD3D11TextureObject_copyToBmp_pixCopy);
|
|
||||||
|
|
||||||
//create temp staging texture
|
//create temp staging texture
|
||||||
D3D11_TEXTURE2D_DESC desc;
|
D3D11_TEXTURE2D_DESC desc;
|
||||||
static_cast<ID3D11Texture2D*>(mD3DTexture)->GetDesc(&desc);
|
static_cast<ID3D11Texture2D*>(mD3DTexture)->GetDesc(&desc);
|
||||||
|
|
@ -270,7 +268,6 @@ bool GFXD3D11TextureObject::copyToBmp(GBitmap* bmp)
|
||||||
D3D11DEVICECONTEXT->Unmap(pStagingTexture, 0);
|
D3D11DEVICECONTEXT->Unmap(pStagingTexture, 0);
|
||||||
|
|
||||||
SAFE_RELEASE(pStagingTexture);
|
SAFE_RELEASE(pStagingTexture);
|
||||||
|
|
||||||
PROFILE_END();
|
PROFILE_END();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue