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
This commit is contained in:
parent
55d065ab78
commit
0360f9a44a
@ -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…
x
Reference in New Issue
Block a user