Make sure shader rewriter stops immediately on an empty string.
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Mon, 9 Jun 2014 08:42:08 +0000 (10:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Jun 2014 09:08:53 +0000 (11:08 +0200)
commitf43d6f8e530b236c6cae256022de0d4ef8559f89
tree811f0b5ee6173bba94d3c5ae08d37b4131ec469e
parente897eec27d3e9322e2048db3afae651a79578e85
Make sure shader rewriter stops immediately on an empty string.

The 'invalid' token didn't really serve a purpose. If a string contains
0 for any reason, it one has reached the end.

Task-number: QTBUG-39505
Change-Id: I3fc9b8f28dc223386a72bbfa28f70fcca0fde223
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/quick/scenegraph/coreapi/qsgshaderrewriter.cpp