Cleanup.
This commit is contained in:
parent
f3b96ef61b
commit
321797f162
@ -754,7 +754,7 @@ int _main_(int _argc, char** _argv)
|
|||||||
, true
|
, true
|
||||||
);
|
);
|
||||||
|
|
||||||
bgfx::ProgramHandle textureSDFProgram = bgfx::createProgram(
|
bgfx::ProgramHandle textureSdfProgram = bgfx::createProgram(
|
||||||
vsTexture
|
vsTexture
|
||||||
, bgfx::createEmbeddedShader(s_embeddedShaders, type, "fs_texture_sdf")
|
, bgfx::createEmbeddedShader(s_embeddedShaders, type, "fs_texture_sdf")
|
||||||
, true);
|
, true);
|
||||||
@ -1051,7 +1051,7 @@ int _main_(int _argc, char** _argv)
|
|||||||
bgfx::submit(0
|
bgfx::submit(0
|
||||||
, view.m_info.cubeMap ? textureCubeProgram
|
, view.m_info.cubeMap ? textureCubeProgram
|
||||||
: 1 < view.m_info.numLayers ? textureArrayProgram
|
: 1 < view.m_info.numLayers ? textureArrayProgram
|
||||||
: view.m_sdf ? textureSDFProgram
|
: view.m_sdf ? textureSdfProgram
|
||||||
: textureProgram
|
: textureProgram
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1069,6 +1069,7 @@ int _main_(int _argc, char** _argv)
|
|||||||
bgfx::destroyProgram(textureProgram);
|
bgfx::destroyProgram(textureProgram);
|
||||||
bgfx::destroyProgram(textureArrayProgram);
|
bgfx::destroyProgram(textureArrayProgram);
|
||||||
bgfx::destroyProgram(textureCubeProgram);
|
bgfx::destroyProgram(textureCubeProgram);
|
||||||
|
bgfx::destroyProgram(textureSdfProgram);
|
||||||
|
|
||||||
imguiDestroy();
|
imguiDestroy();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user