summaryrefslogtreecommitdiff
path: root/tests/csgtestcore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r--tests/csgtestcore.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc
index 6ef05f3..2e28bf6 100644
--- a/tests/csgtestcore.cc
+++ b/tests/csgtestcore.cc
@@ -218,7 +218,12 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
QDir::setCurrent(original_path.absolutePath());
- csgInfo.glview = new OffscreenView(512,512);
+ try {
+ csgInfo.glview = new OffscreenView(512,512);
+ } catch (int error) {
+ fprintf(stderr,"Can't create OpenGL OffscreenView. exiting.\n");
+ exit(1);
+ }
BoundingBox bbox = csgInfo.root_chain->getBoundingBox();
Vector3d center = (bbox.min() + bbox.max()) / 2;
contact: Jan Huwald // Impressum