2003/09/19 05:26:47
[org.ibex.core.git] / src / org / xwt / plat / OpenGL.java
index 8f25506..d730e0e 100644 (file)
@@ -30,8 +30,9 @@ abstract class OpenGL {
     public void init() throws NotSupportedException {
         natInit();
         float v = parseVersion(version);
+        // FIXME: enable linear filtering for OpenGL >= 1.2
         // If we disable linear filtering (and therefor GL_CLAMP_TO_EDGE) we could probably get by with less
-        if(v < 1.2) throw new NotSupportedException("OpenGL 1.2 or greater is required. (you have: " + version +" - " + v + ")");
+        if(v < 1.1) throw new NotSupportedException("OpenGL 1.1 or greater is required. (you have: " + version +" - " + v + ")");
         if(pretendToBeACrappyVideoCard) {
             maxTexSize = 512;
             maxRectTexSize = 0;
@@ -51,7 +52,7 @@ abstract class OpenGL {
         public NotSupportedException(String s) { super(s); }
     }
 
-    public static abstract class GLDoubleBuffer extends DoubleBuffer {
+    public static abstract class GLPixelBuffer extends DoubleBuffer {
         protected int width;
         protected int height;
         public int getWidth() { return width; }
@@ -59,7 +60,7 @@ abstract class OpenGL {
         
         private boolean glScissorEnabled = false;
         
-        public GLDoubleBuffer(int width, int height) {
+        public GLPixelBuffer(int width, int height) {
             this.width = width;
             this.height = height;
         }