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

Don't texture edges, halfedges and points in meshnode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12511 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 25d6fa65
......@@ -230,6 +230,10 @@ 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);
......@@ -441,6 +445,8 @@ 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