Skip to content

Commit

Permalink
Fixed texture leak in 08-update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Mar 17, 2015
1 parent 68810fb commit cacc99f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/08-update/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cacc99f

Please sign in to comment.