diff options
Diffstat (limited to 'tests/OffscreenView.cc')
-rw-r--r-- | tests/OffscreenView.cc | 5 |
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); |