command sync (#1823)

Added command barrier bit when submitting with an indirect buffer - this fixes the flickering on tess-41
This commit is contained in:
DanielGavin 2019-07-22 02:33:50 +02:00 committed by Бранимир Караџић
parent d04528491e
commit e14c077b32

View File

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