ogl device buffer creation

now ogl mirrors dx side with ubo creation and clearing pushed up to the device level.
This commit is contained in:
marauder2k7 2024-03-14 14:23:08 +00:00
parent 1e8841e6b5
commit 11d8604d8e
5 changed files with 52 additions and 17 deletions

View file

@ -155,6 +155,14 @@ GFXD3D11ShaderConstBuffer::~GFXD3D11ShaderConstBuffer()
}
mBufferMap.clear(); // Clear the map
for (U32 i = 0; i < 6; i++)
{
for (U32 j = 0; j < 16; j++)
{
mBoundBuffers[i][j] = nullptr;
}
}
if (mShader)
mShader->_unlinkBuffer(this);
}