From 538ef124468f22bef203b90009ba12d677b81555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 25 Feb 2014 20:19:13 -0800 Subject: [PATCH] Free imgui font memory after init. --- examples/13-stencil/stencil.cpp | 3 +++ examples/14-shadowvolumes/shadowvolumes.cpp | 3 +++ examples/16-shadowmaps/shadowmaps.cpp | 3 +++ examples/runtime/.gitignore | 1 + 4 files changed, 10 insertions(+) diff --git a/examples/13-stencil/stencil.cpp b/examples/13-stencil/stencil.cpp index cf9d63e6..6e240325 100644 --- a/examples/13-stencil/stencil.cpp +++ b/examples/13-stencil/stencil.cpp @@ -947,8 +947,11 @@ int _main_(int /*_argc*/, char** /*_argv*/) size_t ignore = fread(data, 1, size, file); BX_UNUSED(ignore); fclose(file); + imguiCreate(data, size); + free(data); + bgfx::VertexDecl PosNormalTexcoordDecl; PosNormalTexcoordDecl.begin(); PosNormalTexcoordDecl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index 2a9fe003..0299728b 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -1970,8 +1970,11 @@ int _main_(int /*_argc*/, char** /*_argv*/) size_t ignore = fread(data, 1, size, file); BX_UNUSED(ignore); fclose(file); + imguiCreate(data, size); + free(data); + bgfx::VertexDecl PosNormalTexcoordDecl; PosNormalTexcoordDecl.begin(); PosNormalTexcoordDecl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); diff --git a/examples/16-shadowmaps/shadowmaps.cpp b/examples/16-shadowmaps/shadowmaps.cpp index 55a049fe..71253d2e 100644 --- a/examples/16-shadowmaps/shadowmaps.cpp +++ b/examples/16-shadowmaps/shadowmaps.cpp @@ -1488,8 +1488,11 @@ int _main_(int /*_argc*/, char** /*_argv*/) size_t ignore = fread(data, 1, size, file); BX_UNUSED(ignore); fclose(file); + imguiCreate(data, size); + free(data); + // Uniforms. s_uniforms.init(); u_texColor = bgfx::createUniform("u_texColor", bgfx::UniformType::Uniform1iv); diff --git a/examples/runtime/.gitignore b/examples/runtime/.gitignore index 85fb0ec6..8d93c4ce 100644 --- a/examples/runtime/.gitignore +++ b/examples/runtime/.gitignore @@ -1,2 +1,3 @@ libEGL.dll libGLESv2.dll +D3DCompiler*.dll