Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -rupN jmonkeyengine-read-only/engine/src/core/com/jme3/system/AppSettings.java jmonkeyengine-working/engine/src/core/com/jme3/system/AppSettings.java
- --- jmonkeyengine-read-only/engine/src/core/com/jme3/system/AppSettings.java 2012-10-15 11:02:59.000000000 -0400
- +++ jmonkeyengine-working/engine/src/core/com/jme3/system/AppSettings.java 2012-10-15 11:23:46.000000000 -0400
- @@ -74,15 +74,16 @@ public final class AppSettings extends H
- public static final String LWJGL_OPENGL2 = "LWJGL-OpenGL2";
- /**
- - * Use LWJGL as the display system and force using the core OpenGL3.3 renderer.
- + * Use LWJGL as the display system and force using the core OpenGL3.2 renderer.
- * <p>
- - * 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.
- - *
- - *
- - * @see AppSettings#setRenderer(java.lang.String)
- + *
- + * Note: OpenGL 3.2 is used to give 3.x support to Mac users.
- + *
- + * @see AppSettings#setRenderer(java.lang.String)
- */
- public static final String LWJGL_OPENGL3 = "LWJGL-OpenGL3";
- diff -rupN jmonkeyengine-read-only/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java jmonkeyengine-working/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java
- --- jmonkeyengine-read-only/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java 2012-10-15 11:02:59.000000000 -0400
- +++ jmonkeyengine-working/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java 2012-10-15 11:05:43.000000000 -0400
- @@ -97,7 +97,7 @@ public abstract class LwjglContext imple
- if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)){
- ContextAttribs attr;
- if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)){
- - attr = new ContextAttribs(3, 3);
- + attr = new ContextAttribs(3, 2);
- attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false);
- }else{
- attr = new ContextAttribs();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement