summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/textures/gltexture.cpp
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2018-05-25 14:44:09 +0300
committerAndy Nichols <andy.nichols@qt.io>2018-05-29 12:31:48 +0000
commit74402c49a4c6e9411a06fd1b0a8e8de6725433a8 (patch)
tree156dbb797cbe478a25c4d000e33c42a1eb53b7fa /src/render/renderers/opengl/textures/gltexture.cpp
parentf4c090a71baab62038f241a55edb4b578cdd749a (diff)
Fix flashing and crashing of scene2d
Prevent simultanious usage of the GLTexture being rendered to by scene2d. Task-number: QTBUG-68511 Task-number: QT3DS-1792 Change-Id: I88de12cba68ef7af2c7afb1f6e9d6143028efc86 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/render/renderers/opengl/textures/gltexture.cpp')
-rw-r--r--src/render/renderers/opengl/textures/gltexture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/renderers/opengl/textures/gltexture.cpp b/src/render/renderers/opengl/textures/gltexture.cpp
index c98e95759..4286a69b6 100644
--- a/src/render/renderers/opengl/textures/gltexture.cpp
+++ b/src/render/renderers/opengl/textures/gltexture.cpp
@@ -72,6 +72,7 @@ GLTexture::GLTexture(TextureDataManager *texDataMgr,
, m_textureDataManager(texDataMgr)
, m_textureImageDataManager(texImgDataMgr)
, m_dataFunctor(texGen)
+ , m_externalRendering(false)
{
// make sure texture generator is executed
// this is needed when Texture have the TargetAutomatic