Ignore CRTCs with no outputs.

This commit is contained in:
Camilla Berglund 2013-06-12 19:40:55 +02:00
parent c449ef2e12
commit 35c386b7bb

View File

@ -187,6 +187,12 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
RROutput output;
ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]);
if (ci->noutput == 0)
{
XRRFreeCrtcInfo(ci);
continue;
}
output = ci->outputs[0];
for (j = 0; j < ci->noutput; j++)