diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-03 18:50:32 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-03 18:50:32 (GMT) |
commit | 03de7fce81270e10af88ed0488f12d549a3a4f15 (patch) | |
tree | 304158167d4f155ec00ad80984e7e6b6f38a4a00 /src/GLView.cc | |
parent | 653cb36ce8a4925a40a988168ae5351a1661478c (diff) |
try to fix gimbal camera view on Offscreen mode
Diffstat (limited to 'src/GLView.cc')
-rw-r--r-- | src/GLView.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/GLView.cc b/src/GLView.cc index 72818f3..8d55712 100644 --- a/src/GLView.cc +++ b/src/GLView.cc @@ -325,8 +325,7 @@ void GLView::gimbalCamPaintGL() glLoadIdentity(); Color4f bgcol = RenderSettings::inst()->color(RenderSettings::BACKGROUND_COLOR); - fprintf(stderr, "%f %f %f", bgcol[0], bgcol[1], bgcol[2] ); - glClearColor(bgcol[0], bgcol[1], bgcol[2], 0.0); + glClearColor(bgcol[0], bgcol[1], bgcol[2], 1.0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); glRotated(cam.object_rot.x(), 1.0, 0.0, 0.0); |