Commit b9920d8a authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Fixed opaque rendering of background for screenshots with alpha channel.


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18674 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 13da1877
......@@ -627,7 +627,8 @@ void glViewer::drawScene()
// Clear back buffer here:
// Render plugins do not have to worry about using scissor test for clearing their viewports later on.
glClearColor(properties_.backgroundColor()[0], properties_.backgroundColor()[1], properties_.backgroundColor()[2], 1.0f);
glClearColor(properties_.backgroundColor()[0], properties_.backgroundColor()[1],
properties_.backgroundColor()[2], properties_.backgroundColor()[3]);
GLint curViewport[4];
glGetIntegerv(GL_VIEWPORT, curViewport);
glScissor(curViewport[0], curViewport[1], curViewport[2], curViewport[3]);
......@@ -1006,8 +1007,6 @@ void glViewer::paintGL()
if (!properties_.updateLocked())
{
ACG::Vec4f clear_color;
properties_.lockUpdate();
glPushAttrib (GL_ALL_ATTRIB_BITS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment