From 138ac61612df8323c756a9546ed8424b712bb930 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 17 Feb 2006 04:41:45 +0000 Subject: Removed option for using polygon stipple for transparency. git-svn-id: http://svn.leocad.org/trunk@480 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/pieceinf.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'common/pieceinf.cpp') diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp index 9a9d30a..5aca46d 100644 --- a/common/pieceinf.cpp +++ b/common/pieceinf.cpp @@ -1709,13 +1709,11 @@ void PieceInfo::RenderPiece(int nColor) glColor3ubv(FlatColorArray[nColor]); if (nColor > 13 && nColor < 22) { -// glEnable (GL_POLYGON_STIPPLE); glEnable (GL_BLEND); glDepthMask (GL_FALSE); } else { -// glDisable (GL_POLYGON_STIPPLE); glDepthMask (GL_TRUE); glDisable (GL_BLEND); } @@ -1758,7 +1756,6 @@ void PieceInfo::RenderPiece(int nColor) if (curcolor > 13 && curcolor < 22) { -// glEnable (GL_POLYGON_STIPPLE); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable (GL_BLEND); glDepthMask (GL_FALSE); @@ -1766,7 +1763,6 @@ void PieceInfo::RenderPiece(int nColor) } else { -// glDisable (GL_POLYGON_STIPPLE); glDepthMask (GL_TRUE); glDisable (GL_BLEND); glColor3ubv (FlatColorArray[curcolor]); @@ -1801,7 +1797,6 @@ void PieceInfo::RenderPiece(int nColor) if (curcolor > 13 && curcolor < 22) { -// glEnable (GL_POLYGON_STIPPLE); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable (GL_BLEND); glDepthMask (GL_FALSE); @@ -1809,7 +1804,6 @@ void PieceInfo::RenderPiece(int nColor) } else { -// glDisable (GL_POLYGON_STIPPLE); glDepthMask (GL_TRUE); glDisable (GL_BLEND); glColor3ubv(FlatColorArray[curcolor]); -- cgit v1.2.3