In Bullet 2.75, the GLDebugDrawString() function in GL_DebugFont.cpp does
performs manipulations of the OpenGL matrix stack. When it's finished, the
most recent call to glMatrixMode() was set to GL_TEXTURE. Subsequent code
in the GL Debug Drawer seems to assume that the current matrix mode is
GL_MODELVIEW, which can cause future calls to glPushMatrix() to be applied
to the wrong matrix stack. This quickly leads to OpenGL errors -- matrix
underflow in the modelview stack, and overflow in the texture stack.
It looks like the easiest fix is to add a call to
glMatrixMode(GL_MODELVIEW) at the end of GLDebugDrawString().
Original issue reported on code.google.com by cstrat...@gmail.com on 11 Sep 2009 at 6:41
Original issue reported on code.google.com by
cstrat...@gmail.com
on 11 Sep 2009 at 6:41