]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
centerprint no longer counts color codes when centering lines
[xonotic/darkplaces.git] / vid_glx.c
index 1dd9e1bff760b39e3a3d6cb9553c9949011f135a..aea7e3c1ffac8f908dfaf5c1bf34d997c68c7e01 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -199,6 +199,7 @@ static int XLateKey(XKeyEvent *ev, char *ascii)
 
                case XK_Alt_L:
                case XK_Meta_L:
+               case XK_ISO_Level3_Shift:
                case XK_Alt_R:
                case XK_Meta_R: key = K_ALT;                    break;
 
@@ -585,9 +586,12 @@ void VID_Finish (qboolean allowmousegrab)
 
        if (r_render.integer)
        {
+               CHECKGLERROR
                if (r_speeds.integer || gl_finish.integer)
-                       qglFinish();
-               qglXSwapBuffers(vidx11_display, win);
+               {
+                       qglFinish();CHECKGLERROR
+               }
+               qglXSwapBuffers(vidx11_display, win);CHECKGLERROR
        }
 
        if (vid_x11_hardwaregammasupported)