summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmbackingstore.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-05-10 12:04:52 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-09-18 08:29:06 +0200
commit3278eae5773f21f6b1cc059fa392609e28caa902 (patch)
tree00f5d5a27cc4545d0c228deaf26be14272f7a2c8 /src/plugins/platforms/wasm/qwasmbackingstore.h
parent4d289edb14aeb4976218cc306bfc514e37521b82 (diff)
wasm: recreate backing store texture with valid gl context
The compositor context is not current during the resize() call, but will be during updateTexture(). Change-Id: I29c2e06aa251b564b5d622dc9380ec994e15aab0 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmbackingstore.h')
-rw-r--r--src/plugins/platforms/wasm/qwasmbackingstore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmbackingstore.h b/src/plugins/platforms/wasm/qwasmbackingstore.h
index 4bca83c457..b93c96b483 100644
--- a/src/plugins/platforms/wasm/qwasmbackingstore.h
+++ b/src/plugins/platforms/wasm/qwasmbackingstore.h
@@ -64,6 +64,7 @@ private:
QImage m_image;
QScopedPointer<QOpenGLTexture> m_texture;
QRegion m_dirty;
+ bool m_recreateTexture = false;
};
QT_END_NAMESPACE