mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Wayland: Remove window monitor array pre-alloc
The array will be allocated by surfaceHandleEnter when needed.
This commit is contained in:
parent
216ea3d735
commit
12c2ccd609
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user