lib/gamnit: fix constructor of `GLfloatArray`
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 1 Oct 2015 02:39:08 +0000 (22:39 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 5 Oct 2015 17:17:24 +0000 (13:17 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/glesv2/glesv2.nit

index 526fc0b..caea237 100644 (file)
@@ -380,7 +380,10 @@ class GLfloatArray
        super CArray[Float]
        redef type NATIVE: NativeGLfloatArray
 
-       init do native_array = new NativeGLfloatArray(length)
+       redef init(length)
+       do
+               native_array = new NativeGLfloatArray(length)
+       end
 
        # Create with the content of `array`
        new from(array: Array[Float])