From d41cacc63e5487e59302f56c57cae9e4180d6c3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 12 Sep 2015 08:48:34 -0400 Subject: [PATCH] lib/glesv2: fix read_pixels having hardcoded args MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/glesv2/glesv2.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5