File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,16 @@ public void invoke(int error, long description) {
238238
239239 final String renderer = settings .getRenderer ();
240240
241- glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT , GLFW_TRUE );
242- glfwWindowHint (GLFW_OPENGL_PROFILE , GLFW_OPENGL_CORE_PROFILE );
241+ //Appsettings GL version below 3.2
242+ if ((!RENDER_CONFIGS . containsKey (renderer ))|| //OPENGL20
243+ renderer .equals (AppSettings .LWJGL_OPENGL30 )||renderer .equals (AppSettings .LWJGL_OPENGL31 )
244+ ) {
245+ glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT , GLFW_TRUE );
246+ glfwWindowHint (GLFW_OPENGL_PROFILE , GLFW_OPENGL_ANY_PROFILE );
247+ }else {
248+ glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT , GLFW_TRUE );
249+ glfwWindowHint (GLFW_OPENGL_PROFILE , GLFW_OPENGL_CORE_PROFILE );
250+ }
243251
244252 RENDER_CONFIGS .computeIfAbsent (renderer , s -> () -> {
245253 glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT , GLFW_FALSE );
You can’t perform that action at this time.
0 commit comments