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: Iebf68e20b2af426c979980d8bc4449db2b98f2f0 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
parent
8e96e73ebc
commit
63f48d00aa
@ -62,6 +62,7 @@ public:
|
||||
QPlatformBackingStorePrivate(QWindow *w)
|
||||
: window(w)
|
||||
#ifndef QT_NO_OPENGL
|
||||
, textureId(0)
|
||||
, blitter(0)
|
||||
#endif
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user