summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/wayland/qwindow-compositor/window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/wayland/qwindow-compositor/window.cpp b/examples/wayland/qwindow-compositor/window.cpp
index a61e4d98a..59ef1d56a 100644
--- a/examples/wayland/qwindow-compositor/window.cpp
+++ b/examples/wayland/qwindow-compositor/window.cpp
@@ -66,7 +66,8 @@ void Window::setCompositor(Compositor *comp) {
void Window::initializeGL()
{
- QImage backgroundImage = QImage(QLatin1String(":/background.jpg"));
+ QImage backgroundImage = QImage(QLatin1String(":/background.jpg")).rgbSwapped();
+ backgroundImage.invertPixels();
m_backgroundTexture = new QOpenGLTexture(backgroundImage, QOpenGLTexture::DontGenerateMipMaps);
m_backgroundTexture->setMinificationFilter(QOpenGLTexture::Nearest);
m_backgroundImageSize = backgroundImage.size();