Initialize textureId in platform backing store
authorLaszlo Agocs <laszlo.agocs@digia.com>
Mon, 25 Aug 2014 14:53:05 +0000 (16:53 +0200)
committerLaszlo Agocs <laszlo.agocs@digia.com>
Wed, 27 Aug 2014 08:40:07 +0000 (10:40 +0200)
commit63f48d00aaa51bc892d6381b43d57a6bc55afced
treec321ad38bbbf7153ded4144a6783c6fed8738213
parent8e96e73ebce9e0e7bd9c9f55eb545c442fe93a70
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>
src/gui/painting/qplatformbackingstore.cpp