From b888c2e05a4206b6fb8f4ee7ebc4c33af22d3dcb Mon Sep 17 00:00:00 2001 From: clifford Date: Thu, 7 Jan 2010 23:21:45 +0000 Subject: 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 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++) { -- cgit v0.10.1