diff options
author | Laszlo Agocs <[email protected]> | 2022-04-26 03:57:12 -0700 |
---|---|---|
committer | Laszlo Agocs <[email protected]> | 2022-04-27 06:13:13 -0700 |
commit | 8161726619b71fb5bd8f77c7fd020d53d5ac7c9e (patch) | |
tree | 7dfd7bf41a5ba821dab0c304d244d49e8b4653fe /src/opengl/qopenglvertexarrayobject.cpp | |
parent | 9861fd09cba4fe220f668585c78a7324d069ef94 (diff) |
Revive eglfs' raster window support
A number of consequences of the new rhi-based backingstore
composition were not handled. Most importantly, the fact
that RasterGLSurface is not a thing anymore in practice
causes challenges because we can no longer decide just
based on the surfaceType what a QWindow with OpenGLSurface
would be. (a plain GL window or a GL window with a backing
store?) Also, the backingstore needs to be able to initialize
its backing QRhi by itself, because with eglfs going through
OpenGL is the only way.
Amends 68a4c5da9a080101cccd8a3b2edb1c908da0ca8e
Fixes: QTBUG-102750
Change-Id: Ia1ca59d01e3012264a76b50e591612fdcc2a0bd6
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Andy Nichols <[email protected]>
Diffstat (limited to 'src/opengl/qopenglvertexarrayobject.cpp')
-rw-r--r-- | src/opengl/qopenglvertexarrayobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qopenglvertexarrayobject.cpp b/src/opengl/qopenglvertexarrayobject.cpp index 63e37727f91..9df48a3ddc0 100644 --- a/src/opengl/qopenglvertexarrayobject.cpp +++ b/src/opengl/qopenglvertexarrayobject.cpp @@ -274,7 +274,7 @@ void QOpenGLVertexArrayObjectPrivate::destroy() vao = 0; } - if (oldContext && oldContextSurface) { + if (oldContext && oldContextSurface && oldContextSurface->surfaceHandle()) { if (!oldContext->makeCurrent(oldContextSurface)) qWarning("QOpenGLVertexArrayObject::destroy() failed to restore current context"); } |