summaryrefslogtreecommitdiff
path: root/src/CGALRenderer.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-08 00:33:54 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-08 00:33:54 (GMT)
commite6e04d89db4314054111842b5a8ee27928a774a4 (patch)
tree2914e6044c84000ceaca3a9f63f2bdbca70f3dbd /src/CGALRenderer.cc
parent8895546f0e555f83b8e7a1116aadcccc72d6ef83 (diff)
bugfix: Empty renderer was uninitialized, caused a crash
Diffstat (limited to 'src/CGALRenderer.cc')
-rw-r--r--src/CGALRenderer.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CGALRenderer.cc b/src/CGALRenderer.cc
index c9cfd6d..b758b93 100644
--- a/src/CGALRenderer.cc
+++ b/src/CGALRenderer.cc
@@ -60,6 +60,10 @@ CGALRenderer::CGALRenderer(const CGAL_Nef_polyhedron &root) : root(root)
CGAL::OGL::Nef3_Converter<CGAL_Nef_polyhedron3>::convert_to_OGLPolyhedron(*this->root.p3, this->polyhedron);
this->polyhedron->init();
}
+ else {
+ this->polyhedron = NULL;
+ this->polyset = NULL;
+ }
}
CGALRenderer::~CGALRenderer()
contact: Jan Huwald // Impressum