MCPcopy Create free account
hub / github.com/beefytech/Beef / ~DXTexture

Method ~DXTexture

BeefySysLib/platform/win/DXRenderDevice.cpp:547–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547DXTexture::~DXTexture()
548{
549 if ((!mPath.IsEmpty()) && (mRenderDevice != NULL))
550 ((DXRenderDevice*)mRenderDevice)->mTextureMap.Remove(mPath);
551
552 //OutputDebugStrF("DXTexture::~DXTexture %@\n", this);
553 delete mContentBits;
554 if (mD3DResourceView != NULL)
555 mD3DResourceView->Release();
556 if (mD3DDepthStencilView != NULL)
557 mD3DDepthStencilView->Release();
558 if (mD3DDepthBuffer != NULL)
559 mD3DDepthBuffer->Release();
560 if (mD3DTexture != NULL)
561 mD3DTexture->Release();
562 if (mRenderDevice != NULL)
563 mRenderDevice->mTextures.Remove(this);
564}
565
566void DXTexture::ReleaseNative()
567{

Callers

nothing calls this directly

Calls 3

IsEmptyMethod · 0.45
RemoveMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected