1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Wayland: Remove window monitor array pre-alloc

The array will be allocated by surfaceHandleEnter when needed.
This commit is contained in:
Camilla Löwy 2021-12-27 18:22:15 +01:00
parent 216ea3d735
commit 12c2ccd609

View File

@ -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;
}