OSDN Git Service

[fixed] special case for Mirage Graphics3 in Jogl backend. Reports support for 1...
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Thu, 26 May 2011 21:42:11 +0000 (21:42 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Thu, 26 May 2011 21:42:11 +0000 (21:42 +0000)
backends/gdx-backend-jogl/src/com/badlogic/gdx/backends/jogl/JoglGraphicsBase.java

index 0a8d72c..bcbdc76 100644 (file)
@@ -104,6 +104,7 @@ public abstract class JoglGraphicsBase implements Graphics, GLEventListener {
 \r
        void initializeGLInstances (GLAutoDrawable drawable) {\r
                String version = drawable.getGL().glGetString(GL.GL_VERSION);\r
+               String renderer = drawable.getGL().glGetString(GL.GL_RENDERER);\r
                major = Integer.parseInt("" + version.charAt(0));\r
                minor = Integer.parseInt("" + version.charAt(2));\r
 \r
@@ -111,7 +112,8 @@ public abstract class JoglGraphicsBase implements Graphics, GLEventListener {
                        gl20 = new JoglGL20(drawable.getGL());\r
                        gl = gl20;\r
                } else {\r
-                       if (major == 1 && minor < 5) {\r
+                       \r
+                       if (major == 1 && minor < 5 || renderer.equals("Mirage Graphics3")) {\r
                                gl10 = new JoglGL10(drawable.getGL());\r
                        } else {\r
                                gl11 = new JoglGL11(drawable.getGL());\r