summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-07 23:21:45 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-07 23:21:45 (GMT)
commitb888c2e05a4206b6fb8f4ee7ebc4c33af22d3dcb (patch)
treee8edf6c9b38dd7f8d55ac0628c43d2b47405ca6a /mainwin.cc
parent97c484efb90d9cbec03b5dd6f71bb8d91fe06f63 (diff)
Clifford Wolf:
Improved rendering of non-CSG blocks in OpenCSG mode git-svn-id: http://svn.clifford.at/openscad/trunk@233 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 96577c9..f27c225 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -1175,8 +1175,10 @@ static void renderCSGChainviaOpenCSG(CSGChain *chain, GLint *shaderinfo, bool hi
if (last || chain->types[i] == CSGTerm::TYPE_UNION)
{
- OpenCSG::render(primitives);
- glDepthFunc(GL_EQUAL);
+ if (j+1 != i) {
+ OpenCSG::render(primitives);
+ glDepthFunc(GL_EQUAL);
+ }
if (shaderinfo)
glUseProgram(shaderinfo[0]);
for (; j < i; j++) {
contact: Jan Huwald // Impressum