diff options
author | Julien Gouesse <[email protected]> | 2013-03-27 19:16:28 +0100 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2013-03-27 19:16:28 +0100 |
commit | 96fa22334c049a46bcd6246dd401eab4e41e56ed (patch) | |
tree | 5bbd65e36b563f2716eb8d093cc8590b71bd9d44 | |
parent | 42fb584a0d3429763f37ac10fa7c363cf9013bb9 (diff) |
Uses GLProfile.getMaximum(true) to fix problems under Linux ARM with OpenGL-ES 2.0
4 files changed, 6 insertions, 5 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java index 78ccd40..8d4eca8 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java @@ -36,7 +36,7 @@ public class CapsUtil { throw new Ardor3dException("Invalid pixel depth: " + settings.getColorDepth()); } - final GLCapabilities caps = new GLCapabilities(GLProfile.getMaxFixedFunc(true)); + final GLCapabilities caps = new GLCapabilities(GLProfile.getMaximum(true)); caps.setHardwareAccelerated(true); caps.setDoubleBuffered(true); caps.setAlphaBits(settings.getAlphaBits()); diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java index 22fa92e..7137ab6 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java @@ -129,7 +129,7 @@ public class JoglCanvasRenderer implements CanvasRenderer { public void init(final DisplaySettings settings, final boolean doSwap) { _doSwap = doSwap; if (_context == null) { - _context = GLDrawableFactory.getFactory(GLProfile.getMaxFixedFunc(true)).createExternalGLContext(); + _context = GLDrawableFactory.getFactory(GLProfile.getMaximum(true)).createExternalGLContext(); } makeCurrentContext(); diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/image/util/jogl/JoglImageLoader.java b/ardor3d-jogl/src/main/java/com/ardor3d/image/util/jogl/JoglImageLoader.java index 2d8ef66..33b6118 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/image/util/jogl/JoglImageLoader.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/image/util/jogl/JoglImageLoader.java @@ -51,7 +51,7 @@ public class JoglImageLoader implements ImageLoader { @Override public Image load(final InputStream is, final boolean flipped) throws IOException { - final TextureData textureData = TextureIO.newTextureData(GLProfile.getDefault(), is, true, null); + final TextureData textureData = TextureIO.newTextureData(GLProfile.getMaximum(true), is, true, null); final Buffer textureDataBuffer = textureData.getBuffer(); final Image ardorImage = new Image(); diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java index edfe5b5..8cce557 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglPbufferTextureRenderer.java @@ -262,8 +262,9 @@ public class JoglPbufferTextureRenderer extends AbstractPbufferTextureRenderer { } // Make our GLPbuffer... - final GLDrawableFactory fac = GLDrawableFactory.getFactory(GLProfile.getMaxFixedFunc(true)); - final GLCapabilities caps = new GLCapabilities(GLProfile.getMaxFixedFunc(true)); + final GLProfile profile = GLProfile.getMaximum(true); + final GLDrawableFactory fac = GLDrawableFactory.getFactory(profile); + final GLCapabilities caps = new GLCapabilities(profile); caps.setHardwareAccelerated(true); caps.setDoubleBuffered(true); caps.setAlphaBits(_settings.getAlphaBits()); |