diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index 1b0459317..37f3c8e96 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -3980,7 +3980,7 @@ static qboolean X11VID_Init (rendererstate_t *info, unsigned char *palette, int else #endif #ifdef USE_VMODE - if (!xrandr.origgamma) + if (!xrandr.origgamma && vm.pXF86VidModeGetGammaRampSize) { int rampsize = 256; vm.pXF86VidModeGetGammaRampSize(vid_dpy, scrnum, &rampsize);