mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 22:05:40 +00:00
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:
parent
1e8841e6b5
commit
11d8604d8e
5 changed files with 52 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue