Explorar o código

GL_Fence_Manager: use GL_TIMEOUT_IGNORED instead of a loop,

Fernando Sahmkow %!s(int64=6) %!d(string=hai) anos
pai
achega
c043ac4f13
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/video_core/renderer_opengl/gl_fence_manager.cpp

+ 1 - 2
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,