GFXD3D11StateBlock improvements

This commit is contained in:
rextimmy 2016-12-23 15:08:23 +10:00
parent 983b3211ed
commit 48dc2551c4
4 changed files with 203 additions and 199 deletions

View file

@ -140,6 +140,11 @@ GFXD3D11Device::~GFXD3D11Device()
mD3DDeviceContext->ClearState();
mD3DDeviceContext->Flush();
// Free the sampler states
SamplerMap::Iterator sampIter = mSamplersMap.begin();
for (; sampIter != mSamplersMap.end(); ++sampIter)
SAFE_RELEASE(sampIter->value);
// Free the vertex declarations.
VertexDeclMap::Iterator iter = mVertexDecls.begin();
for (; iter != mVertexDecls.end(); iter++)