lib/glesv2: fix read_pixels having hardcoded args
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 12 Sep 2015 12:48:34 +0000 (08:48 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 12 Sep 2015 16:36:15 +0000 (12:36 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/glesv2/glesv2.nit

index 33bb7e9..e842317 100644 (file)
@@ -532,7 +532,7 @@ class GLES
        #
        # Foreign: glReadPixel
        fun read_pixels(x, y, width, height: Int, format: GLPixelFormat, typ: GLPixelType, data: Pointer) `{
-               glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, data);
+               glReadPixels(x, y, width, height, format, typ, data);
        `}
 
        # Set the texture minifying function