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: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20968 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 175d1015
......@@ -247,14 +247,6 @@ draw(GLState& _state , const DrawModes::DrawMode& _drawMode)
GLboolean blendb;
glGetBooleanv( GL_BLEND, &blendb);
glEnable(GL_BLEND);
// blend func to blend alpha values of lines
GLint sblendfunc;
GLint dblendfunc;
glGetIntegerv( GL_BLEND_SRC_ALPHA, &sblendfunc );
glGetIntegerv( GL_BLEND_DST_ALPHA, &dblendfunc );
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// 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 )
glDisable(GL_BLEND);
// reset blend func
glBlendFunc( sblendfunc, dblendfunc );
// enable depth mask
if( depthmaskb == GL_TRUE )
glDepthMask(GL_TRUE);
......
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