qmlglsrc: read from the back buffer when use-default-fbo = TRUE
glReadBuffer(GL_COLOR_ATTACHMENT0) on the default framebuffer (0) is invalid GL API usage and would result in a GL error being thrown.
This commit is contained in:
parent
7f1e1d0d9d
commit
ae80fa4731
@ -242,6 +242,9 @@ QtGLWindow::afterRendering()
|
||||
GST_ERROR ("FBO errors");
|
||||
goto errors;
|
||||
}
|
||||
if (this->priv->useDefaultFbo)
|
||||
gl->ReadBuffer (GL_BACK);
|
||||
else
|
||||
gl->ReadBuffer (GL_COLOR_ATTACHMENT0);
|
||||
gl->BlitFramebuffer (0, 0, width, height,
|
||||
0, 0, width, height,
|
||||
|
Loading…
x
Reference in New Issue
Block a user