src/video/x11/SDL_x11modes.c
changeset 6550 191f00a080ba
parent 6549 db16b819e1d1
child 6551 b0679a0d5751
     1.1 --- a/src/video/x11/SDL_x11modes.c	Wed Oct 03 19:02:46 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Wed Oct 03 19:24:11 2012 -0700
     1.3 @@ -511,7 +511,8 @@
     1.4  
     1.5              for (output = 0; output < res->noutput; output++) {
     1.6                  output_info = XRRGetOutputInfo(data->display, res, res->outputs[output]);
     1.7 -                if (!output_info || output_info->connection == RR_Disconnected) {
     1.8 +                if (!output_info || !output_info->crtc ||
     1.9 +                    output_info->connection == RR_Disconnected) {
    1.10                      XRRFreeOutputInfo(output_info);
    1.11                      continue;
    1.12                  }