There should be:
glDiable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T);
glDisable(GL_TEXTURE_GEN_R);
somewhere in GL_ShapeDrawer to enable transparent integration of OpenGLSupport in other applications.
One might not use GLDebugFont where those glDisable() are called.
Thankx
Bug: GL_ShapeDrawer
-
damiench
- Posts: 14
- Joined: Thu Feb 18, 2010 4:10 pm
Re: Bug: GL_ShapeDrawer
There should be also somewhere:
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
in order to balance:
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glScalef(0.025,0.025,0.025);
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
in order to balance:
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glScalef(0.025,0.025,0.025);
-
Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Bug: GL_ShapeDrawer
The GLSHapeDrawer was not written to be re-used indeed (just for simple demo purposes) indeed.
There is a similar issue here: http://code.google.com/p/bullet/issues/detail?id=342
Could you please create a patch and attach it to that issue?(using svn or tortoisesvn)?
Thanks a lot,
Erwin
There is a similar issue here: http://code.google.com/p/bullet/issues/detail?id=342
Could you please create a patch and attach it to that issue?(using svn or tortoisesvn)?
Thanks a lot,
Erwin
-
damiench
- Posts: 14
- Joined: Thu Feb 18, 2010 4:10 pm