summaryrefslogtreecommitdiff
path: root/common/pieceinf.cpp
diff options
context:
space:
mode:
authorleo2006-02-17 04:41:45 +0000
committerleo2006-02-17 04:41:45 +0000
commit138ac61612df8323c756a9546ed8424b712bb930 (patch)
tree4327af35a484bd4bcecee6cc68ef06b5bd46b17a /common/pieceinf.cpp
parent60d58f37d89ecd0597dd7e279aeaef3e21495744 (diff)
Removed option for using polygon stipple for transparency.
git-svn-id: http://svn.leocad.org/trunk@480 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/pieceinf.cpp')
-rw-r--r--common/pieceinf.cpp6
1 files changed, 0 insertions, 6 deletions
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]);