From b0800aef5df236df56e612b82b27997ece119aa2 Mon Sep 17 00:00:00 2001 From: lubomyr Date: Wed, 18 Feb 2015 20:30:31 +0000 Subject: [PATCH] glshim library updated. added changes from https://github.com/ptitSeb/glshim 18.02.2015 --- project/jni/glshim/src/gl/gl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/jni/glshim/src/gl/gl.c b/project/jni/glshim/src/gl/gl.c index b31daccf1..87894f906 100755 --- a/project/jni/glshim/src/gl/gl.c +++ b/project/jni/glshim/src/gl/gl.c @@ -222,13 +222,13 @@ void glGetIntegerv(GLenum pname, GLint *params) { *params=MAX_STACK_TEXTURE; break; case GL_MODELVIEW_STACK_DEPTH: - *params=(state.modelview_matrix)?1:(state.modelview_matrix->top+1); + *params=(state.modelview_matrix)?(state.modelview_matrix->top+1):1; break; case GL_PROJECTION_STACK_DEPTH: - *params=(state.projection_matrix)?1:(state.projection_matrix->top+1); + *params=(state.projection_matrix)?(state.projection_matrix->top+1):1; break; case GL_TEXTURE_STACK_DEPTH: - *params=(state.texture_matrix)?1:(state.texture_matrix[state.texture.active]->top+1); + *params=(state.texture_matrix)?(state.texture_matrix[state.texture.active]->top+1):1; break; case GL_MAX_LIST_NESTING: *params=64; // fake, no limit in fact