2003/09/19 08:33:47
[org.ibex.core.git] / src / org / xwt / plat / OpenGL.java
index d730e0e..ecacec1 100644 (file)
@@ -52,7 +52,7 @@ abstract class OpenGL {
         public NotSupportedException(String s) { super(s); }
     }
 
-    public static abstract class GLPixelBuffer extends DoubleBuffer {
+    public static abstract class GLPixelBuffer extends PixelBuffer {
         protected int width;
         protected int height;
         public int getWidth() { return width; }
@@ -100,7 +100,6 @@ abstract class OpenGL {
     }
         
     public Picture createPicture(int[] data, int w, int h) {
-        if(w*h != data.length) throw new Error("w*h != data.length");
         if(rectangularTextures && w <= maxRectTexSize && h <= maxRectTexSize) new RectGLPicture(data,w,h,this);
         if(w <= maxTexSize && h <= maxTexSize) return new SquareGLPicture(data,w,h,this);
         return new MosaicGLPicture(data,w,h,this);