mesa/main: Move NULL pointer check.
authorPlamena Manolova <plamena.manolova@intel.com>
Wed, 14 Jun 2017 16:33:12 +0000 (19:33 +0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Tue, 20 Jun 2017 20:57:20 +0000 (13:57 -0700)
commitb3b61211157ab934f1898d3519e7288c1fd89d80
tree867b3bf0e634eb1f814097c25f0e4fdeabacc6bc
parent12f52942f863ca1ec37e3569a7305ec351eae6b1
mesa/main: Move NULL pointer check.

In blit_framebuffer we're already doing a NULL
pointer check for readFb and drawFb so it makes
sense to do it before we actually use the pointers.

CID: 1412569
Signed-off-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/mesa/main/blit.c