mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 15:23:17 +01:00
X11: check crtcInfo for NULL when polling monitors
This commit is contained in:
committed by
Doug Binks
parent
6de70d8252
commit
4df5129529
@@ -151,6 +151,11 @@ void _glfwPollMonitorsX11(void)
|
||||
}
|
||||
|
||||
XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc);
|
||||
if (!ci) {
|
||||
XRRFreeOutputInfo(oi);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270)
|
||||
{
|
||||
widthMM = oi->mm_height;
|
||||
|
||||
Reference in New Issue
Block a user