From 0c46a730de78a976d1538dabc182fa136516c571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 27 Dec 2021 18:22:15 +0100 Subject: [PATCH] Wayland: Remove window monitor array pre-alloc The array will be allocated by surfaceHandleEnter when needed. (cherry picked from commit 12c2ccd609442f835e8f68b27bd903ab716f2531) --- src/wl_window.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 4d84a936..09b120a9 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -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; }