From 6b2ad196c1e4b1580a4cf08fb94ccf7a90537472 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Jun 2010 15:48:50 +0000 Subject: [PATCH] From Laurens Voerman, "While reading the code for setUpViewFor3DSphericalDisplay I noticed that the top face of the cube map uses Draw/Read buffer GL_BACK, while all other faces are using the GL_FRONT buffer. This because the buffer variable is hidden by a new buffer at lower scope. Removing the local variable tested (win32 and linux64) and works fine." --- src/osgViewer/View.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index 1fe9b52c1..865bd1b34 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -938,7 +938,6 @@ void View::setUpViewFor3DSphericalDisplay(double radius, double collar, unsigned camera->setName("Top face camera"); camera->setGraphicsContext(gc.get()); camera->setViewport(new osg::Viewport(0,0,camera_width, camera_height)); - GLenum buffer = traits->doubleBuffer ? GL_BACK : GL_FRONT; camera->setDrawBuffer(buffer); camera->setReadBuffer(buffer); camera->setAllowEventFocus(false);