Fixing glfw package breaking changes

This commit is contained in:
Dynamitos committed 2026-04-06 17:29:55 +02:00
1 parent 87390db80d
commit ace1554020
6 files changed
+20 -14

No files matched your search

+5
View File
@@ -688,6 +688,11 @@ Array<const char*> Graphics::getRequiredExtensions() {
}
void Graphics::initInstance(GraphicsInitializer initInfo) {
#if defined(GLFW_WAYLAND_LIBDECOR) && defined(GLFW_WAYLAND_DISABLE_LIBDECOR)
// Work around libdecor runtime regressions on some Wayland stacks.
glfwInitHint(GLFW_WAYLAND_LIBDECOR, GLFW_WAYLAND_DISABLE_LIBDECOR);
#endif
if (!glfwInit()) {
throw std::runtime_error("Failed to initialize GLFW");
}