summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/textures/gltexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/renderers/opengl/textures/gltexture.cpp')
-rw-r--r--src/render/renderers/opengl/textures/gltexture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/renderers/opengl/textures/gltexture.cpp b/src/render/renderers/opengl/textures/gltexture.cpp
index 5c565470c..2fe0e99c1 100644
--- a/src/render/renderers/opengl/textures/gltexture.cpp
+++ b/src/render/renderers/opengl/textures/gltexture.cpp
@@ -223,6 +223,10 @@ GLTexture::TextureUpdateInfo GLTexture::createOrUpdateGLTexture()
delete m_gl;
m_gl = nullptr;
textureInfo.wasUpdated = true;
+ // If we are destroyed because of some property change but still our content data
+ // make sure we are marked for upload
+ if (m_textureData || !m_imageData.empty())
+ needUpload = true;
}
m_properties.status = QAbstractTexture::Ready;