main/teximage: Even on failure use valid format for init()
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 21 Jul 2017 08:49:08 +0000 (11:49 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 21 Jul 2017 21:14:16 +0000 (00:14 +0300)
commit4aea4d6d64de81b2c00784aa69ca900fdbec3690
tree8a19e481fbf4bba162c1975e842c4f88bba6228b
parentfbfc6a2f67f3b72fa6e86250925eb8f5005c75ae
main/teximage: Even on failure use valid format for init()

Otherwise init_teximage_fields_ms() (called by
_mesa_init_teximage_fields()) will always assert as it can't
find valid base format.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/main/teximage.c