diff --git a/engine/src/core/com/jme3/system/AppSettings.java b/engine/src/core/com/jme3/system/AppSettings.java index 517549a55..d0328062f 100644 --- a/engine/src/core/com/jme3/system/AppSettings.java +++ b/engine/src/core/com/jme3/system/AppSettings.java @@ -76,11 +76,12 @@ public final class AppSettings extends HashMap { /** * Use LWJGL as the display system and force using the core OpenGL3.3 renderer. *

- * If the underlying system does not support OpenGL3.3, then the context + * If the underlying system does not support OpenGL3.2, then the context * initialization will throw an exception. Note that currently jMonkeyEngine - * does not have any shaders that support OpenGL3.3 therefore this + * does not have any shaders that support OpenGL3.2 therefore this * option is not useful. - * + *

+ * Note: OpenGL 3.2 is used to give 3.x support to Mac users. * * @see AppSettings#setRenderer(java.lang.String) */ diff --git a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java index 2a68dd1e2..8da354eee 100644 --- a/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java +++ b/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java @@ -93,20 +93,20 @@ public abstract class LwjglContext implements JmeContext { } } - protected ContextAttribs createContextAttribs(){ - if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)){ + protected ContextAttribs createContextAttribs() { + if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { ContextAttribs attr; - if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)){ - attr = new ContextAttribs(3, 3); + if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { + attr = new ContextAttribs(3, 2); attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false); - }else{ + } else { attr = new ContextAttribs(); } - if (settings.getBoolean("GraphicsDebug")){ + if (settings.getBoolean("GraphicsDebug")) { attr = attr.withDebug(true); } return attr; - }else{ + } else { return null; } }