mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-14 00:49:53 -04:00
Fixed texture leak in 08-update example.
This commit is contained in:
parent
68810fbc8a
commit
cacc99fc63
1 changed files with 5 additions and 0 deletions
|
@ -465,6 +465,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
bgfx::destroyTexture(textures[ii]);
|
||||
}
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(textures3d); ++ii)
|
||||
{
|
||||
bgfx::destroyTexture(textures3d[ii]);
|
||||
}
|
||||
|
||||
bgfx::destroyTexture(texture2d);
|
||||
bgfx::destroyTexture(textureCube);
|
||||
bgfx::destroyIndexBuffer(ibh);
|
||||
|
|
Loading…
Reference in a new issue