mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-01-31 12:40:56 +00:00
Fixed bug which would cause a segfault if MESA_GLX_FX is unset with
fxmesa.
This commit is contained in:
parent
bfc46f2940
commit
7d4c663f4c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue