Rope: Make sure texture unit is disabled when drawing

rope
Armin Burgmeier 2012-04-28 13:53:08 +02:00
parent abc948d591
commit a4b455a2a4
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ void C4Rope::Draw(C4Facet& cgo)
glVertexPointer(2, GL_FLOAT, 0, Vertices);
glEnableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisable(GL_TEXTURE_2D);
glDrawArrays(GL_QUADS, 0, n_segments*4);
}