aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-11-10 19:45:36 +0100
committerGunnar Sletta <gunnar@sletta.org>2014-11-17 07:12:18 +0100
commit54ec039a975c746991600056a8c352fa697fe50b (patch)
tree34000590aa950961e70e96cadfec0e98e2cda0f9 /examples/quick
parent124ff9c5a35061d14288fe355399b9f27d615841 (diff)
Add hint regarding alpha fbo's in the textureinthread example.
Change-Id: I92e6a7c2ca9e9f229b1fc463feea9f657ae18db9 Task-number: QTBUG-42486 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/scenegraph/textureinthread/threadrenderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/textureinthread/threadrenderer.cpp b/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
index d840d3989b..77b2b06de8 100644
--- a/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
+++ b/examples/quick/scenegraph/textureinthread/threadrenderer.cpp
@@ -189,6 +189,8 @@ public slots:
m_mutex.unlock();
if (newId) {
delete m_texture;
+ // note: include QQuickWindow::TextureHasAlphaChannel if the rendered content
+ // has alpha.
m_texture = m_window->createTextureFromId(newId, size);
setTexture(m_texture);