mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Fixed constants commit.
This commit is contained in:
parent
51d8daf762
commit
f5b8d636a6
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue