Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Don't try to query outputs that are not hooked up to a crtc
  • Loading branch information
slouken committed Oct 4, 2012
1 parent b67b6ea commit e54c99467fbba854971c9ee39c1c091ed69be087
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/video/x11/SDL_x11modes.c
@@ -511,7 +511,8 @@ X11_InitModes(_THIS)

for (output = 0; output < res->noutput; output++) {
output_info = XRRGetOutputInfo(data->display, res, res->outputs[output]);
if (!output_info || output_info->connection == RR_Disconnected) {
if (!output_info || !output_info->crtc ||
output_info->connection == RR_Disconnected) {
XRRFreeOutputInfo(output_info);
continue;
}

0 comments on commit e54c994

Please sign in to comment.