st/mesa: fix a segfault when prog->sh.data is NULL
authorMarek Olšák <marek.olsak@amd.com>
Thu, 5 Jan 2017 12:47:15 +0000 (13:47 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 5 Jan 2017 16:11:03 +0000 (17:11 +0100)
commit3477f67057f11b3608366f7096f4c6f1c57db509
tree58dda5db8a71eb949ef8b17825f23bc9f2a4941e
parent37f926206402e227391179cc1a3fa78b1c2673f7
st/mesa: fix a segfault when prog->sh.data is NULL

Broken by:
   st/mesa: get Version from gl_program rather than gl_shader_program

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/state_tracker/st_atom_texture.c