From 1e8cc5898dd8c82faa6aa9bb0e4de3087c69ce0e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 20 Sep 2023 14:11:07 +0700 Subject: [PATCH] Raise OpenGL version back to 4.5, since without Direct State Access there is so much headache --- .../ru/dbotthepony/kstarbound/client/StarboundClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt index c5240402..bb51be6e 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt @@ -173,8 +173,8 @@ class StarboundClient : Closeable { GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE) GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GLFW.GLFW_TRUE) - GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 3) - GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 3) + GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 4) + GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 5) GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_CORE_PROFILE) window = GLFW.glfwCreateWindow(800, 600, "KStarbound", MemoryUtil.NULL, MemoryUtil.NULL)