From 321797f162e5c037ccbd94ff7650aecce9653e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 29 May 2017 14:09:48 -0700 Subject: [PATCH] Cleanup. --- tools/texturev/texturev.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/texturev/texturev.cpp b/tools/texturev/texturev.cpp index d5976940a..fa7928c3b 100644 --- a/tools/texturev/texturev.cpp +++ b/tools/texturev/texturev.cpp @@ -754,7 +754,7 @@ int _main_(int _argc, char** _argv) , true ); - bgfx::ProgramHandle textureSDFProgram = bgfx::createProgram( + bgfx::ProgramHandle textureSdfProgram = bgfx::createProgram( vsTexture , bgfx::createEmbeddedShader(s_embeddedShaders, type, "fs_texture_sdf") , true); @@ -1051,7 +1051,7 @@ int _main_(int _argc, char** _argv) bgfx::submit(0 , view.m_info.cubeMap ? textureCubeProgram : 1 < view.m_info.numLayers ? textureArrayProgram - : view.m_sdf ? textureSDFProgram + : view.m_sdf ? textureSdfProgram : textureProgram ); @@ -1069,6 +1069,7 @@ int _main_(int _argc, char** _argv) bgfx::destroyProgram(textureProgram); bgfx::destroyProgram(textureArrayProgram); bgfx::destroyProgram(textureCubeProgram); + bgfx::destroyProgram(textureSdfProgram); imguiDestroy();