summaryrefslogtreecommitdiff
path: root/tests/OffscreenView.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/OffscreenView.cc
parent872fc643218ef642544612954272e89629e145c5 (diff)
Linux offscreen OpenGL using glxpixmaps. also fix FBO ARB/EXT issues
Diffstat (limited to 'tests/OffscreenView.cc')
-rw-r--r--tests/OffscreenView.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/OffscreenView.cc b/tests/OffscreenView.cc
index 8a4b57d..d188d0d 100644
--- a/tests/OffscreenView.cc
+++ b/tests/OffscreenView.cc
@@ -14,7 +14,8 @@ OffscreenView::OffscreenView(size_t width, size_t height)
object_rot(35, 0, 25), camera_eye(0, 0, 0), camera_center(0, 0, 0)
{
for (int i = 0; i < 10; i++) this->shaderinfo[i] = 0;
- this->ctx = create_offscreen_context(width, height);
+ this->ctx = create_offscreen_context(width, height);
+ if ( this->ctx == NULL ) throw -1;
initializeGL();
resizeGL(width, height);
}
@@ -185,7 +186,7 @@ void OffscreenView::paintGL()
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glClearColor(1.0, 1.0, 0.92, 0.0);
+ glClearColor(1.0, 1.0, 0.92, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
contact: Jan Huwald // Impressum