Avoid hanging if glGetIntegerv() fails.
authorJason Barron <jason.barron@nokia.com>
Mon, 3 Sep 2012 08:42:27 +0000 (10:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Sep 2012 08:55:38 +0000 (10:55 +0200)
commit4a9dccc3f5ead9a7210025ff725873431ec42c0a
treef74e236cdf998eaed4b1e29a6cd0f3f310e2c9b4
parent5c88efc06d152ac675b4369d854699b137631fa0
Avoid hanging if glGetIntegerv() fails.

If 'count' is not initialized, it could be anything and if the
call to glGetIntegerv() fails and leaves this value unchanged
then the loop could go through any number of iterations.

Change-Id: Ibdcfd018b70e265ef6aeab87a5df8c0530c653a7
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/quick/scenegraph/coreapi/qsgrenderer.cpp