2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

GL_Fence_Manager: use GL_TIMEOUT_IGNORED instead of a loop,

This commit is contained in:
Fernando Sahmkow 2020-04-22 20:34:32 -04:00
parent 4e37f1b113
commit c043ac4f13

View file

@ -40,8 +40,7 @@ void GLInnerFence::Wait() {
return;
}
ASSERT(sync_object.handle != 0);
while (glClientWaitSync(sync_object.handle, 0, 1000) == GL_TIMEOUT_EXPIRED)
;
glClientWaitSync(sync_object.handle, 0, GL_TIMEOUT_IGNORED);
}
FenceManagerOpenGL::FenceManagerOpenGL(Core::System& system,