Only genereate new texture if texture id is 0
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 <f87fac8e5dad2fc22a970f2db0cb45d360844aed@nokia.com>

corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,jfaust/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative