compile fix for when vidmode isn't available

This commit is contained in:
Bill Currie 2002-06-10 22:30:30 +00:00
parent b70ffbf871
commit 3551b82a50

View file

@ -376,7 +376,6 @@ void
X11_SetVidMode (int width, int height)
{
const char *str = getenv ("MESA_GLX_FX");
static int initialized = 0;
if (vidmode_active)
return;
@ -386,6 +385,9 @@ X11_SetVidMode (int width, int height)
}
#ifdef HAVE_VIDMODE
{
static int initialized = 0;
if (!vidmode_avail)
vidmode_avail = VID_CheckVMode (x_disp, NULL, NULL);
@ -447,6 +449,7 @@ X11_SetVidMode (int width, int height)
vidmode_avail = vidmode_active = false;
}
}
}
#endif
}