From 2fd91459fd97562a7c1130edb69d77c0eaaab5b9 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sat, 21 Aug 2021 23:13:38 +0200 Subject: [PATCH] Fixed bug --- core/src/core.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/core.cpp b/core/src/core.cpp index 9616241b..2c2f7baf 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -323,9 +323,7 @@ int sdrpp_main(int argc, char *argv[]) { GLFWmonitor* monitor = NULL; for (int i = 0; i < OPENGL_VERSION_COUNT; i++) { glsl_version = OPENGL_VERSIONS_GLSL[i]; - if (OPENGL_VERSIONS_IS_ES[i]) { - glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); - } + 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]);