QSGBatchRenderer: return when a shader is not returned by the manager
authorAndrew Knight <andrew.knight@digia.com>
Thu, 6 Mar 2014 12:59:42 +0000 (14:59 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 6 Mar 2014 14:50:37 +0000 (15:50 +0100)
commit3aa6a8b90f9c0e5f0ad72c462a15157b4e419ae6
treea09aa93ab55e76f027c4b4571e5f84916fac7b87
parentcb7e8dabf6e5b323bd3f2511127f63bee732fd99
QSGBatchRenderer: return when a shader is not returned by the manager

If a shader can't be found from the manager (e.g., if it failed to link),
return from rendering. This prevents the renderer from crashing on a
null pointer.

Task-number: QTBUG-37290
Change-Id: I44d0bbb721854c0bc6da681ff55f71140a5cb0bc
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp