pull/297/head^2
Ryzerth 2021-08-21 23:13:38 +02:00
rodzic 8502bae236
commit 2fd91459fd
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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]);