mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -05:00
Free imgui font memory after init.
This commit is contained in:
parent
d7c4adb369
commit
538ef12446
4 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
1
examples/runtime/.gitignore
vendored
1
examples/runtime/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
libEGL.dll
|
libEGL.dll
|
||||||
libGLESv2.dll
|
libGLESv2.dll
|
||||||
|
D3DCompiler*.dll
|
||||||
|
|
Loading…
Reference in a new issue