Fixed bug which would cause a segfault if MESA_GLX_FX is unset with

fxmesa.
This commit is contained in:
Joseph Carter 2000-01-23 04:13:52 +00:00
parent bfc46f2940
commit 7d4c663f4c

View file

@ -657,7 +657,7 @@ void VID_Init(unsigned char *palette)
if (QF_XMesaSetFXmode) {
#ifdef XMESA
const char *str = getenv("MESA_GLX_FX");
if (*str && *str != 'd') {
if (str != NULL && *str != 'f') {
if (tolower(*str) == 'w') {
Cvar_SetValue("vid_glx_fullscreen", 0);
} else {