Skip to content

Commit

Permalink
support transparent background when using renderToFramebuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 24, 2016
1 parent 3d95e9a commit 1f3c2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/View3DInventorViewer.cpp
Expand Up @@ -1284,7 +1284,7 @@ void View3DInventorViewer::renderToFramebuffer(QGLFramebufferObject* fbo)

const QColor col = this->backgroundColor();
glViewport(0, 0, width, height);
glClearColor(col.redF(), col.greenF(), col.blueF(), 1.0f);
glClearColor(col.redF(), col.greenF(), col.blueF(), col.alphaF());
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

glDepthRange(0.1,1.0);
Expand Down

0 comments on commit 1f3c2ef

Please sign in to comment.