mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Ignore CRTCs with no outputs.
This commit is contained in:
parent
c449ef2e12
commit
35c386b7bb
|
@ -187,6 +187,12 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
||||||
RROutput output;
|
RROutput output;
|
||||||
|
|
||||||
ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]);
|
ci = XRRGetCrtcInfo(_glfw.x11.display, sr, sr->crtcs[i]);
|
||||||
|
if (ci->noutput == 0)
|
||||||
|
{
|
||||||
|
XRRFreeCrtcInfo(ci);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
output = ci->outputs[0];
|
output = ci->outputs[0];
|
||||||
|
|
||||||
for (j = 0; j < ci->noutput; j++)
|
for (j = 0; j < ci->noutput; j++)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user