summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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