Commit c2558c7a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix green tint on first image extract.

Related to #1315 #1302
parent 371e21de
...@@ -584,6 +584,7 @@ void GLWidget::paintGL() ...@@ -584,6 +584,7 @@ void GLWidget::paintGL()
if ((m_fbo == nullptr) || m_fbo->size() != m_profileSize) { if ((m_fbo == nullptr) || m_fbo->size() != m_profileSize) {
delete m_fbo; delete m_fbo;
QOpenGLFramebufferObjectFormat fmt; QOpenGLFramebufferObjectFormat fmt;
fmt.setSamples(1);
m_fbo = new QOpenGLFramebufferObject(m_profileSize.width(), m_profileSize.height(), fmt); // GL_TEXTURE_2D); m_fbo = new QOpenGLFramebufferObject(m_profileSize.width(), m_profileSize.height(), fmt); // GL_TEXTURE_2D);
} }
m_fbo->bind(); m_fbo->bind();
......
Supports Markdown
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