mesa: Assert base format before truncating to unsigned short
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 6 Apr 2018 07:41:26 +0000 (10:41 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 10 Apr 2018 22:49:56 +0000 (01:49 +0300)
commit98d38747543277cf931499a6b66626ac644b1865
treef5f387e59219c2720307b2d7e7eb733c800f9e13
parent26f48fe01092e2fb05daaa5090ac69f8a86a2cfd
mesa: Assert base format before truncating to unsigned short

CID: 1433709
Fixes: ca721b3d8: mesa: use GLenum16 in a few more places
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/main/teximage.c