initial commit
[profile/ivi/xorg-x11-server.git] / debian / patches / 162_null_crtc_in_rotation.patch
1 --- a/hw/xfree86/modes/xf86RandR12.c
2 +++ b/hw/xfree86/modes/xf86RandR12.c
3 @@ -946,7 +946,8 @@ xf86RandR12SetRotations (ScreenPtr pScre
4      for (c = 0; c < config->num_crtc; c++) {
5         xf86CrtcPtr    crtc = config->crtc[c];
6  
7 -       RRCrtcSetRotations (crtc->randr_crtc, rotations);
8 +        if (crtc != NULL)
9 +            RRCrtcSetRotations (crtc->randr_crtc, rotations);
10      }
11  #endif
12      randrp->supported_rotations = rotations;