Fixed texture leak in 08-update example.
This commit is contained in:
parent
68810fbc8a
commit
cacc99fc63
@ -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…
x
Reference in New Issue
Block a user