Commit 836c1ea4 authored by Jan Möbius's avatar Jan Möbius
Browse files

Correctly unbind texture if we bound it ourselves

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10109 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a5c6c6a9
......@@ -575,6 +575,9 @@ draw_faces(FaceMode _mode) {
// We need per face attributes so we have to use seperate vertices per face
glDrawArrays(GL_TRIANGLES, (*stripProcessor_.textureRenderData())[i].startOffset , (*stripProcessor_.textureRenderData())[i].faceCount * 3 );
// Unbind Texture again
glBindTexture( GL_TEXTURE_2D, 0 );
}
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment