Only genereate new texture if texture id is 0
authorCharles Yin <charles.yin@nokia.com>
Wed, 16 May 2012 06:05:06 +0000 (16:05 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 23:13:28 +0000 (01:13 +0200)
commita03290bd7e988294ec8167dc17865bb94b478f7b
tree12870b03e7b1d0bf3008c92c4438760d61a56250
parentb8f732a65ef95406780d43ba2c0245728e342347
Only genereate new texture if texture id is 0

Otherwise a new texture would be created for accessing textureId()
function everytime and even worse thing is these textures will never
been deleted and eventually cause gl out of memory.

Change-Id: I349fcf15b5aeabbd9420a8dd645e0fdcc1d256bf
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
src/quick/scenegraph/util/qsgtexture.cpp