mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
Revert "remove flag GL_SYNC_FLUSH_COMMANDS_BIT on syncing"
This reverts commit 025f8d342f
.
OSX may wait forever, so fix osx freeze
This commit is contained in:
parent
d19bc15d26
commit
5534d7e8c3
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ void StreamBuffer::Alloc ( size_t size, u32 stride )
|
||||||
// wait for new slots to end of buffer
|
// wait for new slots to end of buffer
|
||||||
for(u32 i=SLOT(m_free_iterator)+1; i<=SLOT(iter_end) && i < SYNC_POINTS; i++)
|
for(u32 i=SLOT(m_free_iterator)+1; i<=SLOT(iter_end) && i < SYNC_POINTS; i++)
|
||||||
{
|
{
|
||||||
glClientWaitSync(fences[i], 0, GL_TIMEOUT_IGNORED);
|
glClientWaitSync(fences[i], GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
|
||||||
glDeleteSync(fences[i]);
|
glDeleteSync(fences[i]);
|
||||||
}
|
}
|
||||||
m_free_iterator = iter_end;
|
m_free_iterator = iter_end;
|
||||||
|
@ -109,7 +109,7 @@ void StreamBuffer::Alloc ( size_t size, u32 stride )
|
||||||
// wait for space at the start
|
// wait for space at the start
|
||||||
for(u32 i=0; i<=SLOT(iter_end); i++)
|
for(u32 i=0; i<=SLOT(iter_end); i++)
|
||||||
{
|
{
|
||||||
glClientWaitSync(fences[i], 0, GL_TIMEOUT_IGNORED);
|
glClientWaitSync(fences[i], GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
|
||||||
glDeleteSync(fences[i]);
|
glDeleteSync(fences[i]);
|
||||||
}
|
}
|
||||||
m_free_iterator = iter_end;
|
m_free_iterator = iter_end;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue