opengl: Do not crash when programGuard is a nullptr
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Sat, 19 Nov 2011 19:57:14 +0000 (20:57 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 09:51:10 +0000 (10:51 +0100)
commitf1a67c65312e62c30698c07ab382db64998b8d56
tree3a1f351ccac4cacffcb0e1876d17e560651f2bfb
parent89aee9ecde7ca28b5ed93514c07c41ed110849cc
opengl: Do not crash when programGuard is a nullptr

The rest of the code is checking programGuard for nullptr, do it here
as well to prevent a segmentation fault.

Change-Id: I38a03f74d493b8f731157be1739707b39904f7ba
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/opengl/qopenglshaderprogram.cpp
src/opengl/qglshaderprogram.cpp