Commit 4840c378 authored by Isaak Lim's avatar Isaak Lim

- fixed rebinding of the previous texture

closes #1578

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16769 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2c78ee1f
......@@ -495,7 +495,10 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
_state.set_base_color(base_color_backup);
}
// Rebind the previous texture
ACG::GLState::bindTexture(lastTarget,lastBuffer);
if ( ( _drawMode & DrawModes::SOLID_TEXTURED ) && mesh_.has_vertex_texcoords2D())
{
///\todo enableTexCoords_
......@@ -575,9 +578,6 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
}
// Rebind the previous texture
ACG::GLState::bindTexture(lastTarget,lastBuffer);
enable_arrays(0);
// Unbind all remaining buffers
......
Markdown is supported
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