nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
437b075
)
gamnit: update users of glGet* functions
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 26 Jun 2016 13:00:22 +0000
(09:00 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 26 Jun 2016 13:11:21 +0000
(09:11 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/textures.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/textures.nit
b/lib/gamnit/textures.nit
index
d644d60
..
3b72a51
100644
(file)
--- a/
lib/gamnit/textures.nit
+++ b/
lib/gamnit/textures.nit
@@
-98,7
+98,7
@@
class GamnitRootTexture
private fun load_from_pixels(pixels: Pointer, width, height: Int, format: GLPixelFormat)
do
- var max_texture_size = glGetIntegerv(gl_MAX_TEXTURE_SIZE)
+ var max_texture_size = glGetIntegerv(gl_MAX_TEXTURE_SIZE, 0)
if width > max_texture_size or height > max_texture_size then
error = new Error("Texture {self} width or height is over the GL_MAX_TEXTURE_SIZE of {max_texture_size}")
return