Advertisement
jappy

JME3 OpenGL 3.3 to 3.2 Patch

Oct 15th, 2012
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.36 KB | None | 0 0
  1. diff -rupN jmonkeyengine-read-only/engine/src/core/com/jme3/system/AppSettings.java jmonkeyengine-working/engine/src/core/com/jme3/system/AppSettings.java
  2. --- jmonkeyengine-read-only/engine/src/core/com/jme3/system/AppSettings.java    2012-10-15 11:02:59.000000000 -0400
  3. +++ jmonkeyengine-working/engine/src/core/com/jme3/system/AppSettings.java  2012-10-15 11:23:46.000000000 -0400
  4. @@ -74,15 +74,16 @@ public final class AppSettings extends H
  5.      public static final String LWJGL_OPENGL2 = "LWJGL-OpenGL2";
  6.      
  7.      /**
  8. -     * Use LWJGL as the display system and force using the core OpenGL3.3 renderer.
  9. +     * Use LWJGL as the display system and force using the core OpenGL3.2 renderer.
  10.       * <p>
  11. -     * If the underlying system does not support OpenGL3.3, then the context
  12. +     * If the underlying system does not support OpenGL3.2, then the context
  13.       * initialization will throw an exception. Note that currently jMonkeyEngine
  14. -     * does not have any shaders that support OpenGL3.3 therefore this
  15. +     * does not have any shaders that support OpenGL3.2 therefore this
  16.       * option is not useful.
  17. -     *
  18. -     *
  19. -     * @see AppSettings#setRenderer(java.lang.String)
  20. +     *
  21. +     * Note: OpenGL 3.2 is used to give 3.x support to Mac users.
  22. +     *
  23. +     * @see AppSettings#setRenderer(java.lang.String)
  24.       */
  25.      public static final String LWJGL_OPENGL3 = "LWJGL-OpenGL3";
  26.      
  27. 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
  28. --- jmonkeyengine-read-only/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java    2012-10-15 11:02:59.000000000 -0400
  29. +++ jmonkeyengine-working/engine/src/lwjgl/com/jme3/system/lwjgl/LwjglContext.java  2012-10-15 11:05:43.000000000 -0400
  30. @@ -97,7 +97,7 @@ public abstract class LwjglContext imple
  31.          if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)){
  32.              ContextAttribs attr;
  33.              if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)){
  34. -                attr = new ContextAttribs(3, 3);
  35. +                attr = new ContextAttribs(3, 2);
  36.                  attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false);
  37.              }else{
  38.                  attr = new ContextAttribs();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement