]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
command line option -readonly to turn off all writing
[xonotic/darkplaces.git] / vid_glx.c
index 1c5f8bf47b579ac09005c3b7f83f4f27f9adf1df..5b77483f71c54454c38d7487f045997e018d1a1b 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -147,7 +147,7 @@ static Colormap vidx11_colormap;
 /*-----------------------------------------------------------------------*/
 //
 
-long keysym2ucs(KeySym keysym);
+extern long keysym2ucs(KeySym keysym); // LordHavoc: suppress warning just in this case, it's not worth having a header file for this...
 static void DP_Xutf8LookupString(XKeyEvent * ev,
                         Uchar *uch,
                         KeySym * keysym_return,
@@ -936,7 +936,7 @@ void VID_Finish (void)
                        if (vid_usingvsync != vid_usevsync)
                        {
                                vid_usingvsync = vid_usevsync;
-                               if (qglXSwapIntervalSGI (vid_usevsync))
+                               if (qglXSwapIntervalSGI && qglXSwapIntervalSGI (vid_usevsync))
                                        Con_Print("glXSwapIntervalSGI didn't accept the vid_vsync change, it will take effect on next vid_restart (GLX_SGI_swap_control does not allow turning off vsync)\n");
                        }