From cacc99fc6372f03e5f66f8aebdc60774d43dba3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 16 Mar 2015 18:49:41 -0700 Subject: [PATCH] Fixed texture leak in 08-update example. --- examples/08-update/update.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/08-update/update.cpp b/examples/08-update/update.cpp index 45ecad894..d87371aeb 100644 --- a/examples/08-update/update.cpp +++ b/examples/08-update/update.cpp @@ -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);