diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-11-03 14:13:49 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-11-04 09:18:03 +0000 |
commit | 74b067acfe3ff4093fd7c1724ef1405731bae5e5 (patch) | |
tree | 21be20956dfea5263045be993eeccd2e2230a502 /examples | |
parent | 534b09c2aa343ddec340863be1036938d45e9769 (diff) |
Texture fix for example
Make it show colors other than black...
Change-Id: I0d0ef374d18c1dfbd4f1734d2d0cdcfbc2f36186
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wayland/qwindow-compositor/compositorwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/wayland/qwindow-compositor/compositorwindow.cpp b/examples/wayland/qwindow-compositor/compositorwindow.cpp index 50fd587a0..a902a7d0d 100644 --- a/examples/wayland/qwindow-compositor/compositorwindow.cpp +++ b/examples/wayland/qwindow-compositor/compositorwindow.cpp @@ -69,6 +69,7 @@ void CompositorWindow::initializeGL() { QImage backgroundImage = QImage(QLatin1String(":/background.jpg")); m_backgroundTexture = new QOpenGLTexture(backgroundImage, QOpenGLTexture::DontGenerateMipMaps); + m_backgroundTexture->setMinificationFilter(QOpenGLTexture::Nearest); m_backgroundImageSize = backgroundImage.size(); m_textureBlitter.create(); } |