effect/offscreenquickview: always use GL_RGBA8
GL_RGB8 isn't supported by OpenGL ES BUG: 479055
This commit is contained in:
parent
66b1462cf8
commit
a05a6d8727
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ void OffscreenQuickView::update()
|
||||||
|
|
||||||
QOpenGLFramebufferObjectFormat fboFormat;
|
QOpenGLFramebufferObjectFormat fboFormat;
|
||||||
fboFormat.setAttachment(QOpenGLFramebufferObject::CombinedDepthStencil);
|
fboFormat.setAttachment(QOpenGLFramebufferObject::CombinedDepthStencil);
|
||||||
fboFormat.setInternalTextureFormat(d->m_hasAlphaChannel ? GL_RGBA8 : GL_RGB8);
|
fboFormat.setInternalTextureFormat(GL_RGBA8);
|
||||||
|
|
||||||
d->m_fbo = std::make_unique<QOpenGLFramebufferObject>(nativeSize, fboFormat);
|
d->m_fbo = std::make_unique<QOpenGLFramebufferObject>(nativeSize, fboFormat);
|
||||||
if (!d->m_fbo->isValid()) {
|
if (!d->m_fbo->isValid()) {
|
||||||
|
|
Loading…
Reference in a new issue