mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Wayland: Remove window monitor array pre-alloc
The array will be allocated by surfaceHandleEnter when needed.
This commit is contained in:
@@ -806,10 +806,6 @@ int _glfwCreateWindowWayland(_GLFWwindow* window,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window->wl.monitors = _glfw_calloc(1, sizeof(_GLFWmonitor*));
|
|
||||||
window->wl.monitorsCount = 0;
|
|
||||||
window->wl.monitorsSize = 1;
|
|
||||||
|
|
||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user