mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
GL: Fixed constants commit.
This commit is contained in:
@@ -4108,7 +4108,8 @@ namespace bgfx
|
||||
bool constantsChanged = compute.m_constBegin < compute.m_constEnd;
|
||||
rendererUpdateUniforms(this, _render->m_constantBuffer, compute.m_constBegin, compute.m_constEnd);
|
||||
|
||||
if (constantsChanged)
|
||||
if (constantsChanged
|
||||
&& NULL != program.m_constantBuffer)
|
||||
{
|
||||
commit(*program.m_constantBuffer);
|
||||
}
|
||||
@@ -4423,7 +4424,8 @@ namespace bgfx
|
||||
{
|
||||
ProgramGL& program = m_program[programIdx];
|
||||
|
||||
if (constantsChanged)
|
||||
if (constantsChanged
|
||||
&& NULL != program.m_constantBuffer)
|
||||
{
|
||||
commit(*program.m_constantBuffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user