Wayland: Remove window monitor array pre-alloc

The array will be allocated by surfaceHandleEnter when needed.
master
Camilla Löwy ago%!(EXTRA string=3 years)
parent 216ea3d735
commit 12c2ccd609
  1. 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;
}

Loading…
Cancel
Save