From 787681d320f770648e8428261916f9b14ebcbd1e Mon Sep 17 00:00:00 2001 From: IlyaShurupov Date: Tue, 18 Jun 2024 13:40:35 +0300 Subject: [PATCH] use x11 as windowing platform with glfw for now --- Graphics/private/Window.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Graphics/private/Window.cpp b/Graphics/private/Window.cpp index affdea3..f844e21 100644 --- a/Graphics/private/Window.cpp +++ b/Graphics/private/Window.cpp @@ -63,6 +63,8 @@ Window* Window::createWindow(Vec2F size, const char* title) { } count--; + glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11); + // Initialize GLFW if (!glfwInit()) { printf("Failed to initialize GLFW\n"); @@ -70,7 +72,9 @@ Window* Window::createWindow(Vec2F size, const char* title) { } // Set the GLFW error callback - glfwSetErrorCallback([](int error, const char* description) { printf("GLFW Error: %i %s\n", error, description); }); + glfwSetErrorCallback([](int error, const char* description) { + printf("GLFW Error: %i %s\n", error, description); + }); auto out = new Window(size, title);