Improves OpenGL-ES support (especially for Raspberry Pi), contribution of Erkki Nokso-Koivisto, uses the default profile

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10433 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
jul..om 12 years ago
parent 55d065ab78
commit 0360f9a44a
  1. 3
      engine/src/jogl/com/jme3/system/jogl/JoglNewtAbstractDisplay.java

@ -75,7 +75,8 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
protected void initGLCanvas() {
//FIXME use the settings to know whether to use the max programmable profile
//then call GLProfile.getMaxProgrammable(true);
GLCapabilities caps = new GLCapabilities(GLProfile.getMaxFixedFunc(true));
//FIXME use the default profile only on embedded devices
GLCapabilities caps = new GLCapabilities(GLProfile.getDefault());
caps.setHardwareAccelerated(true);
caps.setDoubleBuffered(true);
caps.setStencilBits(settings.getStencilBits());

Loading…
Cancel
Save