summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/compositor/wayland_wrapper/qwlsurfacebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/qwlsurfacebuffer.cpp b/src/compositor/wayland_wrapper/qwlsurfacebuffer.cpp
index 3ed469a6c..eab3bdf99 100644
--- a/src/compositor/wayland_wrapper/qwlsurfacebuffer.cpp
+++ b/src/compositor/wayland_wrapper/qwlsurfacebuffer.cpp
@@ -275,7 +275,7 @@ bool SurfaceBuffer::isYInverted() const
ClientBufferIntegration *clientBufferIntegration = m_compositor->clientBufferIntegration();
#ifdef QT_COMPOSITOR_WAYLAND_GL
- if (clientBufferIntegration && waylandBufferHandle() && isShmBuffer()) {
+ if (clientBufferIntegration && waylandBufferHandle() && !isShmBuffer()) {
ret = clientBufferIntegration->isYInverted(waylandBufferHandle());
} else
#endif