From 04f7800df4b54287c0e55adc5913d747d6cef52b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 14 Dec 2017 10:12:31 +1100 Subject: [PATCH] [client] remove silly wait logic --- client/renderers/opengl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index d31747a4..c6c7e9b0 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -635,10 +635,7 @@ bool lgr_opengl_render(void * opaque) // wait for vsync unsigned int count; - glXGetVideoSyncSGI(&count); - if (count == this->gpuFrameCount) - glXWaitVideoSyncSGI(1, 0, &count); - glXGetVideoSyncSGI(&this->gpuFrameCount); + glXWaitVideoSyncSGI(1, 0, &count); glDisable(GL_SCISSOR_TEST); glClear(GL_COLOR_BUFFER_BIT);