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

Revert last

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12512 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 07629de4
......@@ -230,10 +230,6 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
glPushAttrib(GL_ENABLE_BIT);
// If a texture is currently bound,we un bind it for the non textured draw modes
GLenum lastTexture = ACG::GLState::getActiveTexture();
ACG::GLState::bindTexture( GL_TEXTURE_2D, 0);
if ( (_drawMode & DrawModes::POINTS) || (_drawMode & DrawModes::POINTS_COLORED) || (_drawMode & DrawModes::POINTS_SHADED ) ) {
ACG::GLState::shadeModel(GL_FLAT);
......@@ -445,8 +441,6 @@ draw(GLState& _state, const DrawModes::DrawMode& _drawMode) {
_state.set_base_color(base_color_backup);
}
// Rebind the last active texture
ACG::GLState::bindTexture( GL_TEXTURE_2D, lastTexture);
if ( ( _drawMode & DrawModes::SOLID_TEXTURED ) && mesh_.has_vertex_texcoords2D())
{
......
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