summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-12-12 09:49:15 +0100
committerLiang Qi <liang.qi@qt.io>2016-12-12 09:49:16 +0100
commit9fd54bac3075eb74413776657464027a277d43cf (patch)
treeae74789b061df42fef2fd9d97446cd0b34a9a083 /examples
parent2a47c83674a8e19b287cc731cbe814ca411f269f (diff)
parent391c71b4488d69f3a0b16171b01f569fbc9ec07b (diff)
downloadqtwayland-9fd54bac3075eb74413776657464027a277d43cf.tar.gz
Merge remote-tracking branch 'origin/5.8' into dev
Change-Id: Idd91b55bc2b1e3506d9385b3352aeda06de6d4bc
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 a61e4d98..59ef1d56 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();