Ver código fonte

command sync (#1823)

Added command barrier bit when submitting with an indirect buffer - this fixes the flickering on tess-41
DanielGavin 6 anos atrás
pai
commit
e14c077b32
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/renderer_gl.cpp

+ 1 - 0
src/renderer_gl.cpp

@@ -6641,6 +6641,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
 
 
 							if (isValid(compute.m_indirectBuffer) )
 							if (isValid(compute.m_indirectBuffer) )
 							{
 							{
+								barrier |= GL_COMMAND_BARRIER_BIT;
 								const VertexBufferGL& vb = m_vertexBuffers[compute.m_indirectBuffer.idx];
 								const VertexBufferGL& vb = m_vertexBuffers[compute.m_indirectBuffer.idx];
 								if (currentState.m_indirectBuffer.idx != compute.m_indirectBuffer.idx)
 								if (currentState.m_indirectBuffer.idx != compute.m_indirectBuffer.idx)
 								{
 								{