Free imgui font memory after init.
This commit is contained in:
parent
d7c4adb369
commit
538ef12446
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
1
examples/runtime/.gitignore
vendored
1
examples/runtime/.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
libEGL.dll
|
||||
libGLESv2.dll
|
||||
D3DCompiler*.dll
|
||||
|
Loading…
Reference in New Issue
Block a user