From fbaf5ec460e3a68140ae9abab4a2766ca18fb2ca Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Mon, 5 Apr 2021 15:10:05 -0500 Subject: [PATCH] Condition around setting class name --- core/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Window.cpp b/core/Window.cpp index 743dafa..fbe0c6a 100644 --- a/core/Window.cpp +++ b/core/Window.cpp @@ -10,7 +10,9 @@ void Window::Init() { glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_FLOATING, GLFW_TRUE); +#if GLFW_VERSION_MINOR >= 2 glfwWindowHintString(GLFW_X11_CLASS_NAME, "Couch"); +#endif glfwWindow = glfwCreateWindow(width, height, "Couch", NULL, NULL);