summaryrefslogtreecommitdiff
path: root/src/export_png.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/export_png.cc')
-rw-r--r--src/export_png.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/export_png.cc b/src/export_png.cc
index 16e2a69..d983bc1 100644
--- a/src/export_png.cc
+++ b/src/export_png.cc
@@ -17,6 +17,7 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output)
csgInfo.glview = new OffscreenView(512,512);
} catch (int error) {
fprintf(stderr,"Can't create OpenGL OffscreenView. Code: %i.\n", error);
+ return;
}
CGALRenderer cgalRenderer(*root_N);
contact: Jan Huwald // Impressum