diff --git a/src/bgfx.cpp b/src/bgfx.cpp index c9cbfaa29..936d2df0f 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -1247,11 +1247,7 @@ namespace bgfx UniformBuffer* uniformBuffer = m_frame->m_uniformBuffer[m_uniformIdx]; m_uniformEnd = uniformBuffer->getPos(); - m_key.m_program = isValid(_program) - ? _program - : ProgramHandle{0} - ; - + m_key.m_program = _program; m_key.m_view = _id; SortKey::Enum type = SortKey::SortProgram;