This commit is contained in:
Branimir Karadžić 2016-02-26 20:09:13 -08:00
parent b29ca3cfbb
commit 46b1b1b885

View File

@ -467,9 +467,10 @@ struct DebugDraw
{ {
bgfx::destroyIndexBuffer(m_ibh); bgfx::destroyIndexBuffer(m_ibh);
bgfx::destroyVertexBuffer(m_vbh); bgfx::destroyVertexBuffer(m_vbh);
bgfx::destroyProgram(m_program[0]); for (uint32_t ii = 0; ii < Program::Count; ++ii)
bgfx::destroyProgram(m_program[1]); {
bgfx::destroyProgram(m_program[2]); bgfx::destroyProgram(m_program[ii]);
}
bgfx::destroyUniform(u_params); bgfx::destroyUniform(u_params);
} }