mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-16 02:18:43 +01:00
add check for correct glfw for macro
This commit is contained in:
parent
7bccc67311
commit
afef9f57ab
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user