From 9bb66b7bd6fad4cc50bb9f88830fb1e96f8c32c3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 15 Dec 2017 16:58:21 +1100 Subject: [PATCH] [client] opengl: decouple mouse updates from vsync --- client/renderers/opengl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index 71318b9b..bc1bb179 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -712,6 +712,15 @@ bool lgr_opengl_render(void * opaque) return true; } this->newShape = false; + + glDrawBuffer(GL_FRONT); + glCallList(this->texList + this->texIndex); + lgr_opengl_draw_mouse(this); + if (this->fpsTexture) + glCallList(this->fpsList); + glDrawBuffer(GL_BACK); + glFlush(); + return true; } glDisable(GL_SCISSOR_TEST);