mirror of
https://github.com/glfw/glfw.git
synced 2024-11-23 02:25:10 +00:00
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:
parent
1fa4312b29
commit
0c46a730de
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user