diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-19 12:31:23 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-19 12:31:23 (GMT) |
commit | 702525f69c0c9b7dbeb9f07efd4d9acaf9ead65d (patch) | |
tree | 5f464d1bf7b63c29fc9d9f9c51fa2db1454fedda /src/ThrownTogetherRenderer.cc | |
parent | ca03eec8404d36e6261f7a10ef93a528c083a09c (diff) |
cleanup for pull request
Diffstat (limited to 'src/ThrownTogetherRenderer.cc')
-rw-r--r-- | src/ThrownTogetherRenderer.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ThrownTogetherRenderer.cc b/src/ThrownTogetherRenderer.cc index b22c6a5..146d2e1 100644 --- a/src/ThrownTogetherRenderer.cc +++ b/src/ThrownTogetherRenderer.cc @@ -30,8 +30,7 @@ #include "system-gl.h" -//#include <boost/unordered_map.hpp> -#include <map> +#include <boost/unordered_map.hpp> ThrownTogetherRenderer::ThrownTogetherRenderer(CSGChain *root_chain, CSGChain *highlights_chain, @@ -63,8 +62,7 @@ void ThrownTogetherRenderer::renderCSGChain(CSGChain *chain, bool highlight, bool fberror) const { glDepthFunc(GL_LEQUAL); - //boost::unordered_map<std::pair<PolySet*,Transform3d*>,int> polySetVisitMark; - std::map<std::pair<PolySet*,Transform3d*>,int> polySetVisitMark; + boost::unordered_map<std::pair<PolySet*,Transform3d*>,int> polySetVisitMark; for (size_t i = 0; i < chain->polysets.size(); i++) { if (polySetVisitMark[std::make_pair(chain->polysets[i].get(), &chain->matrices[i])]++ > 0) continue; |