android - Unexpected gl_stack_underflow error -
android - Unexpected gl_stack_underflow error -
i working on little game uses opengl.
i getting gl_stack_underflow error. have gone through code, , there 1 glpushmatrix each glpopmatrix. ideas else causing error?
did maybe a
glmatrixmode(gl_modelview); /* ... */ glpushmatrix();
"balanced"
glmatrixmode(gl_projection); /* ... */ glpopmatrix();
it matters matrix active @ time of push/pop operation.
anyway, shouldn't utilize opengl built-in matrix operations @ all. utilize glm, eigen or linmath.h build matrices part of programs info structures , load matrices require glloadmatrix
or, when go shaders, gluniform
.
no, opengl built-in matrix operations not gpu accelerated, there's no benefit @ in using them.
android opengl-es
Comments
Post a Comment