Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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 e54c994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit e54c994

Please sign in to comment.