(none)
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Apr 2006 17:56:06 +0000
changeset 1747 e75d0cbcf3c8
parent 1746 a0ddae8b43cf
child 1748 5e86e34453d4
(none)
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Sat Apr 29 17:54:32 2006 +0000
+++ b/src/video/x11/SDL_x11modes.c	Sat Apr 29 17:56:06 2006 +0000
@@ -425,6 +425,7 @@
     }
 
     /* Query the extension version */
+    vm_error = -1;
     if ( !SDL_NAME(XF86VidModeQueryExtension)(SDL_Display, &vm_event, &vm_error) ||
          !SDL_NAME(XF86VidModeQueryVersion)(SDL_Display, major, minor) ) {
         return 0;