Commit fa39236f authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

Disable use of custom GL blend functions in LineNode.

Custom blend functions interfere with fix for issue #2506.

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 175d1015
......@@ -247,14 +247,6 @@ draw(GLState& _state , const DrawModes::DrawMode& _drawMode)
GLboolean blendb;
glGetBooleanv( GL_BLEND, &blendb);
// blend func to blend alpha values of lines
GLint sblendfunc;
GLint dblendfunc;
glGetIntegerv( GL_BLEND_SRC_ALPHA, &sblendfunc );
glGetIntegerv( GL_BLEND_DST_ALPHA, &dblendfunc );
// blend ontop of prev. drawn mesh
GLboolean depthmaskb;
glGetBooleanv( GL_DEPTH_WRITEMASK, &depthmaskb);
......@@ -290,9 +282,6 @@ draw(GLState& _state , const DrawModes::DrawMode& _drawMode)
if( blendb == GL_FALSE )
// reset blend func
glBlendFunc( sblendfunc, dblendfunc );
// enable depth mask
if( depthmaskb == GL_TRUE )
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