Free imgui font memory after init.

This commit is contained in:
Branimir Karadžić 2014-02-25 20:19:13 -08:00
parent d7c4adb369
commit 538ef12446
4 changed files with 10 additions and 0 deletions

View file

@ -947,8 +947,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
size_t ignore = fread(data, 1, size, file); size_t ignore = fread(data, 1, size, file);
BX_UNUSED(ignore); BX_UNUSED(ignore);
fclose(file); fclose(file);
imguiCreate(data, size); imguiCreate(data, size);
free(data);
bgfx::VertexDecl PosNormalTexcoordDecl; bgfx::VertexDecl PosNormalTexcoordDecl;
PosNormalTexcoordDecl.begin(); PosNormalTexcoordDecl.begin();
PosNormalTexcoordDecl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); PosNormalTexcoordDecl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float);

View file

@ -1970,8 +1970,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
size_t ignore = fread(data, 1, size, file); size_t ignore = fread(data, 1, size, file);
BX_UNUSED(ignore); BX_UNUSED(ignore);
fclose(file); fclose(file);
imguiCreate(data, size); imguiCreate(data, size);
free(data);
bgfx::VertexDecl PosNormalTexcoordDecl; bgfx::VertexDecl PosNormalTexcoordDecl;
PosNormalTexcoordDecl.begin(); PosNormalTexcoordDecl.begin();
PosNormalTexcoordDecl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); PosNormalTexcoordDecl.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float);

View file

@ -1488,8 +1488,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
size_t ignore = fread(data, 1, size, file); size_t ignore = fread(data, 1, size, file);
BX_UNUSED(ignore); BX_UNUSED(ignore);
fclose(file); fclose(file);
imguiCreate(data, size); imguiCreate(data, size);
free(data);
// Uniforms. // Uniforms.
s_uniforms.init(); s_uniforms.init();
u_texColor = bgfx::createUniform("u_texColor", bgfx::UniformType::Uniform1iv); u_texColor = bgfx::createUniform("u_texColor", bgfx::UniformType::Uniform1iv);

View file

@ -1,2 +1,3 @@
libEGL.dll libEGL.dll
libGLESv2.dll libGLESv2.dll
D3DCompiler*.dll