Wayland: Remove window monitor array pre-alloc

The array will be allocated by surfaceHandleEnter when needed.

(cherry picked from commit 12c2ccd609)
This commit is contained in:
Camilla Löwy 2021-12-27 18:22:15 +01:00
parent 1fa4312b29
commit 0c46a730de

View File

@ -944,10 +944,6 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
} }
} }
window->wl.monitors = calloc(1, sizeof(_GLFWmonitor*));
window->wl.monitorsCount = 0;
window->wl.monitorsSize = 1;
return GLFW_TRUE; return GLFW_TRUE;
} }