remove flag GL_SYNC_FLUSH_COMMANDS_BIT on syncing

This commit is contained in:
degasus 2013-02-26 21:48:35 +01:00
parent 9bc8d6e02b
commit 025f8d342f

View file

@ -92,7 +92,7 @@ void StreamBuffer::Alloc ( size_t size, u32 stride )
// wait for new slots to end of buffer
for(u32 i=SLOT(m_free_iterator)+1; i<=SLOT(iter_end) && i < SYNC_POINTS; i++)
{
glClientWaitSync(fences[i], GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
glClientWaitSync(fences[i], 0, GL_TIMEOUT_IGNORED);
glDeleteSync(fences[i]);
}
m_free_iterator = iter_end;
@ -111,7 +111,7 @@ void StreamBuffer::Alloc ( size_t size, u32 stride )
// wait for space at the start
for(u32 i=0; i<=SLOT(iter_end); i++)
{
glClientWaitSync(fences[i], GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
glClientWaitSync(fences[i], 0, GL_TIMEOUT_IGNORED);
glDeleteSync(fences[i]);
}
m_free_iterator = iter_end;