Selaa lähdekoodia

Wayland: Remove window monitor array pre-alloc

The array will be allocated by surfaceHandleEnter when needed.
Camilla Löwy 3 vuotta sitten
vanhempi
commit
12c2ccd609
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  1. 0 4
      src/wl_window.c

+ 0 - 4
src/wl_window.c

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