From 48de667b3f13ba8b8678f3c07d8230cd1ebf6778 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 7 Jan 2005 03:14:10 +0000 Subject: [PATCH] that flush shouldn't be needed, and a small spot of "Changed gl->qgl". git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@762 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidlinuxglx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index e347a6e1..9c2fbf82 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -580,14 +580,15 @@ void GL_BeginRendering (int *x, int *y, int *width, int *height) // if (!wglMakeCurrent( maindc, baseRC )) // Sys_Error ("wglMakeCurrent failed"); -// glViewport (*x, *y, *width, *height); +// qglViewport (*x, *y, *width, *height); } void GL_EndRendering (void) { //return; - glFlush(); +//we don't need the flush, XSawpBuffers does it for us. +//chances are, it's version is more suitable anyway. At least there's the chance that it might be. qglXSwapBuffers(vid_dpy, vid_window); }