Skip to content

Commit

Permalink
Fix flickering caused by the premature destruction of texture IDs.
Browse files Browse the repository at this point in the history
Don't give ownership of surface buffer texture IDs to the scene graph
texture object. The textures belongs to the client buffer and will be
continuously over the lifetime of the buffer whereas the scene graph
texture will typically only last the a single update.
  • Loading branch information
denexter committed Aug 13, 2018
1 parent c9872a3 commit a734dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compositor/compositor_api/qwaylandquickitem.cpp
Expand Up @@ -289,7 +289,7 @@ class QWaylandSurfaceTextureProvider : public QSGTextureProvider
m_sgTex->bind();
}
} else {
QQuickWindow::CreateTextureOptions opt = QQuickWindow::TextureOwnsGLTexture;
QQuickWindow::CreateTextureOptions opt;
QWaylandQuickSurface *surface = qobject_cast<QWaylandQuickSurface *>(surfaceItem->surface());
if (surface && surface->useTextureAlpha()) {
opt |= QQuickWindow::TextureHasAlphaChannel;
Expand Down

0 comments on commit a734dcb

Please sign in to comment.