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.
This commit is contained in:
Keith Packard 2007-02-16 10:06:22 -08:00
parent 0ab6c03c17
commit 5f6f8616d8

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) {