mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Reset state when switching from compute to draw.
This commit is contained in:
parent
0d232051eb
commit
5c7986ad38
1 changed files with 3 additions and 1 deletions
|
@ -4790,6 +4790,8 @@ namespace bgfx { namespace gl
|
|||
continue;
|
||||
}
|
||||
|
||||
bool resetState = viewChanged || wasCompute;
|
||||
|
||||
if (wasCompute)
|
||||
{
|
||||
wasCompute = false;
|
||||
|
@ -4812,7 +4814,7 @@ namespace bgfx { namespace gl
|
|||
uint64_t changedStencil = currentState.m_stencil ^ draw.m_stencil;
|
||||
currentState.m_stencil = newStencil;
|
||||
|
||||
if (viewChanged)
|
||||
if (resetState)
|
||||
{
|
||||
currentState.clear();
|
||||
currentState.m_scissor = !draw.m_scissor;
|
||||
|
|
Loading…
Reference in a new issue