From: Alexis Laferrière Date: Sat, 12 Sep 2015 12:48:34 +0000 (-0400) Subject: lib/glesv2: fix read_pixels having hardcoded args X-Git-Tag: v0.7.8~28^2~14 X-Git-Url: http://nitlanguage.org lib/glesv2: fix read_pixels having hardcoded args Signed-off-by: Alexis Laferrière --- diff --git a/lib/glesv2/glesv2.nit b/lib/glesv2/glesv2.nit index 33bb7e9..e842317 100644 --- a/lib/glesv2/glesv2.nit +++ b/lib/glesv2/glesv2.nit @@ -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