Fix Issue 342, related to OpenGL GL_ShapeDrawer (when used with multiple OpenGL contexts)

This commit is contained in:
erwin.coumans
2010-02-23 03:11:18 +00:00
parent 79ef84f344
commit e4c3c2a1a2

View File

@@ -522,14 +522,13 @@ void GL_ShapeDrawer::drawOpenGL(btScalar* m, const btCollisionShape* shape, cons
gluBuild2DMipmaps(GL_TEXTURE_2D,3,256,256,GL_RGB,GL_UNSIGNED_BYTE,image); gluBuild2DMipmaps(GL_TEXTURE_2D,3,256,256,GL_RGB,GL_UNSIGNED_BYTE,image);
delete[] image; delete[] image;
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glScalef(0.025f,0.025f,0.025f);
} }
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glScalef(0.025f,0.025f,0.025f);
glMatrixMode(GL_MODELVIEW);
static const GLfloat planex[]={1,0,0,0}; static const GLfloat planex[]={1,0,0,0};
// static const GLfloat planey[]={0,1,0,0}; // static const GLfloat planey[]={0,1,0,0};