diff --git a/src/nv_driver.c b/src/nv_driver.c index 92232dd..920efc4 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -1927,7 +1927,8 @@ NVLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, } /* Make the change through RandR */ - RRCrtcGammaSet(crtc->randr_crtc, lut_r, lut_g, lut_b); + if(crtc->randr_crtc != NULL) + RRCrtcGammaSet(crtc->randr_crtc, lut_r, lut_g, lut_b); } }