diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-08-25 16:53:05 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-08-25 16:57:58 +0200 |
commit | 4ca7b23dc007afd58928dc6949cb797903f10951 (patch) | |
tree | e94ade69c03d5901e62abcca3f303b1ae69b73ac | |
parent | 5afebb05b49a57afc252c9df9b633673269c9463 (diff) |
Initialize textureId in platform backing store
Setting it initially to 0 is very important, otherwise we will
do a glDeleteTextures with the undefined value.
The result sometimes goes unnoticed and sometimes causes bizarre
issues: For example in the 'textures' example one face of one cube
out of the six did go blank from time to time since the corresponding
texture was deleted by the backingstore.
Change-Id: Id19eb2164471b542b08a277a65edfcb5d0f8248d
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
-rw-r--r-- | src/gui/painting/qplatformbackingstore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qplatformbackingstore.cpp b/src/gui/painting/qplatformbackingstore.cpp index 25f25f9fa8..407e032027 100644 --- a/src/gui/painting/qplatformbackingstore.cpp +++ b/src/gui/painting/qplatformbackingstore.cpp @@ -62,6 +62,7 @@ public: QPlatformBackingStorePrivate(QWindow *w) : window(w) #ifndef QT_NO_OPENGL + , textureId(0) , blitter(0) #endif { |