Don't set subpixel order during startup; the screen won't be ready.

in xf86CrtcSetMode, scrn->pScreen will be NULL during server startup time,
so don't try to set the subpixel order. subpixel order will be set in the
randr initialization anyways.
(cherry picked from commit 5f6f8616d8)
This commit is contained in:
Keith Packard 2007-02-16 10:06:22 -08:00 committed by Keith Packard
parent 096965ec9c
commit 5631a67f64

View File

@ -313,7 +313,8 @@ xf86CrtcSetMode (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
/* XXX free adjustedmode */
ret = TRUE;
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
if (scrn->pScreen)
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
done:
if (!ret) {