only instantiate variable when required
authorMaurice Kalinowski <maurice.kalinowski@digia.com>
Wed, 13 Feb 2013 09:02:54 +0000 (10:02 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 13 Feb 2013 09:41:11 +0000 (10:41 +0100)
commitd3fa421bd0958fbcea63941a48227fb3664d4d52
treee59b92d605d27a0bca11f4330446131c1cb3553e
parent536c9481170c7cd84e5e78edf99ebc943d439b1a
only instantiate variable when required

variable is only used for debugging purposes, where debugging part
is inside preprocessor check. Creation of the object should be there
as well.

Change-Id: I6c9e842ad05d8e45f6d67f5e5dedebc896cda157
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/scenegraph/coreapi/qsgdefaultrenderer.cpp