wasm: QOpenGLWidget: ensure depth write is enabled when calling paintGL
Task-number: QTBUG-111304 Change-Id: Ibe9f886b12c89fad7431b77b55c259b15d83559b Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit 84f9293ea2a769e419a9320e5309ce0c5971502e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1262312566
commit
314340546d
@ -963,6 +963,10 @@ void QOpenGLWidgetPrivate::render()
|
||||
f->glViewport(0, 0, q->width() * q->devicePixelRatio(), q->height() * q->devicePixelRatio());
|
||||
inPaintGL = true;
|
||||
|
||||
#ifdef Q_OS_WASM
|
||||
f->glDepthMask(GL_TRUE);
|
||||
#endif
|
||||
|
||||
QOpenGLContextPrivate::get(ctx)->defaultFboRedirect = fbos[currentTargetBuffer]->handle();
|
||||
q->paintGL();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user