diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-10-09 01:02:40 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-10-09 01:02:40 (GMT) |
commit | 589991c41e5420e68a8504670c25b0dba9e6628e (patch) | |
tree | 792553691ad1d6a1c5258d532003e1eea900ffec /tests/csgtestcore.cc | |
parent | 872fc643218ef642544612954272e89629e145c5 (diff) |
Linux offscreen OpenGL using glxpixmaps. also fix FBO ARB/EXT issues
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r-- | tests/csgtestcore.cc | 7 |
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; |