summaryrefslogtreecommitdiff
path: root/tests/csgtestcore.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-10-09 01:02:40 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-10-09 01:02:40 (GMT)
commit589991c41e5420e68a8504670c25b0dba9e6628e (patch)
tree792553691ad1d6a1c5258d532003e1eea900ffec /tests/csgtestcore.cc
parent872fc643218ef642544612954272e89629e145c5 (diff)
Linux offscreen OpenGL using glxpixmaps. also fix FBO ARB/EXT issues
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