From afef9f57abefc876dad21e78b5546fb3d0d55e85 Mon Sep 17 00:00:00 2001 From: SrS2225a Date: Sat, 4 Jan 2025 22:58:53 -0800 Subject: [PATCH] add check for correct glfw for macro --- core/backends/glfw/backend.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/backends/glfw/backend.cpp b/core/backends/glfw/backend.cpp index 6bbd4d9f..7a32fa7c 100644 --- a/core/backends/glfw/backend.cpp +++ b/core/backends/glfw/backend.cpp @@ -99,8 +99,10 @@ namespace backend { glfwWindowHint(GLFW_CLIENT_API, OPENGL_VERSIONS_IS_ES[i] ? GLFW_OPENGL_ES_API : GLFW_OPENGL_API); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, OPENGL_VERSIONS_MAJOR[i]); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, OPENGL_VERSIONS_MINOR[i]); - glfwWindowHintString(GLFW_WAYLAND_APP_ID, "sdrpp"); - + #if GLFW_VERSION_MAJOR > 3 || (GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 4) + glfwWindowHintString(GLFW_WAYLAND_APP_ID, "sdrpp"); + #endif + // Create window with graphics context monitor = glfwGetPrimaryMonitor(); window = glfwCreateWindow(winWidth, winHeight, "SDR++ v" VERSION_STR " (Built at " __TIME__ ", " __DATE__ ")", NULL, NULL);