summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2016-11-29 10:44:40 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2016-11-29 10:47:14 +0000
commit545ef2e21d74128733f3b9b117d7c6024826cbb5 (patch)
tree1f16dc8fabfd715a6ca43dc93619c11447eed04a
parentec059c9222f229d516ede0018f07a264366dae48 (diff)
Make qwindow-compositor look different than pure-qml
Change-Id: I8aac99dd98be943909f5a6dc254a4f79e83e61d9 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
-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();