mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed resource leaks in examples.
This commit is contained in:
parent
655dd6f7d9
commit
f78a18c9b7
2 changed files with 4 additions and 0 deletions
|
@ -469,6 +469,8 @@ int _main_(int _argc, char** _argv)
|
|||
bgfx::destroyTexture(textureNormal);
|
||||
bgfx::destroyUniform(u_texColor);
|
||||
bgfx::destroyUniform(u_texNormal);
|
||||
bgfx::destroyUniform(u_lightPosRadius);
|
||||
bgfx::destroyUniform(u_lightRgbInnerR);
|
||||
|
||||
// Shutdown bgfx.
|
||||
bgfx::shutdown();
|
||||
|
|
|
@ -335,6 +335,8 @@ int _main_(int _argc, char** _argv)
|
|||
bgfx::destroyIndexBuffer(ibh);
|
||||
bgfx::destroyVertexBuffer(vbh);
|
||||
bgfx::destroyProgram(program);
|
||||
bgfx::destroyTexture(textureCube);
|
||||
bgfx::destroyUniform(u_texCube);
|
||||
|
||||
// Shutdown bgfx.
|
||||
bgfx::shutdown();
|
||||
|
|
Loading…
Reference in a new issue