diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-07 23:21:45 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-07 23:21:45 (GMT) |
commit | b888c2e05a4206b6fb8f4ee7ebc4c33af22d3dcb (patch) | |
tree | e8edf6c9b38dd7f8d55ac0628c43d2b47405ca6a | |
parent | 97c484efb90d9cbec03b5dd6f71bb8d91fe06f63 (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
-rw-r--r-- | mainwin.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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++) { |