From c043ac4f139be7cbf5b7edbf050aa84e1896f75d Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Wed, 22 Apr 2020 20:34:32 -0400 Subject: GL_Fence_Manager: use GL_TIMEOUT_IGNORED instead of a loop, --- src/video_core/renderer_opengl/gl_fence_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/video_core') diff --git a/src/video_core/renderer_opengl/gl_fence_manager.cpp b/src/video_core/renderer_opengl/gl_fence_manager.cpp index 476c89940..99ddcb3f8 100644 --- a/src/video_core/renderer_opengl/gl_fence_manager.cpp +++ b/src/video_core/renderer_opengl/gl_fence_manager.cpp @@ -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, -- cgit v1.2.3