]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
patch from Dresk that adds a doom3-like "toggle" console command
[xonotic/darkplaces.git] / vid_sdl.c
index b96a3598715383314161b2fde4a418d35fbd340d..fe09e99dba859635675ebb9c1404c0a6a47141d1 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -181,7 +181,7 @@ static unsigned int tbl_sdltoquake[] =
        0,                      //SDLK_LMETA    = 310,
        0,                      //SDLK_LSUPER   = 311,          /* Left "Windows" key */
        0,                      //SDLK_RSUPER   = 312,          /* Right "Windows" key */
-       0,                      //SDLK_MODE             = 313,          /* "Alt Gr" key */
+       K_ALT,                  //SDLK_MODE             = 313,          /* "Alt Gr" key */
        0,                      //SDLK_COMPOSE  = 314,          /* Multi-key compose key */
        0,                      //SDLK_HELP             = 315,
        0,                      //SDLK_PRINT    = 316,
@@ -488,8 +488,11 @@ void VID_Finish (qboolean allowmousegrab)
        Uint8 appstate;
        qboolean vid_usemouse;
 
+       CHECKGLERROR
        if (r_speeds.integer || gl_finish.integer)
-               qglFinish();
+       {
+               qglFinish();CHECKGLERROR
+       }
        SDL_GL_SwapBuffers();
 
        //react on appstate changes