nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54e87fc
)
lib/glesv2: fix read_pixels having hardcoded args
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sat, 12 Sep 2015 12:48:34 +0000
(08:48 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/glesv2/glesv2.nit
b/lib/glesv2/glesv2.nit
index
33bb7e9
..
e842317
100644
(file)
--- 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