st/mesa: move dereference after null check
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 1 Mar 2016 21:45:00 +0000 (14:45 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Mar 2016 15:55:20 +0000 (08:55 -0700)
commit37cfc51b13712fad8e97c12f59efa2b3fb9fdae2
treed494b27cdc31b2a400a9b3acb9b7dae0b2852012
parentad175113023ec0f67bf51275d0aac20d9e3ea0b9
st/mesa: move dereference after null check

We should not dereference shader before we have done the
null check.

Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_image.c