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

Fixed wron position of texture unbind

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10135 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8a453470
......@@ -576,10 +576,11 @@ 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 );
}
// Unbind Texture again
glBindTexture( GL_TEXTURE_2D, 0 );
} else {
// We need per face attributes so we have to use seperate vertices per face
glDrawArrays(GL_TRIANGLES, 0, stripProcessor_.perFaceVertexBufferSize() );
......
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