effect/offscreenquickview: always use GL_RGBA8

GL_RGB8 isn't supported by OpenGL ES

BUG: 479055
This commit is contained in:
Xaver Hugl 2024-01-10 20:56:15 +01:00
parent 66b1462cf8
commit a05a6d8727

View file

@ -220,7 +220,7 @@ void OffscreenQuickView::update()
QOpenGLFramebufferObjectFormat fboFormat;
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);
if (!d->m_fbo->isValid()) {