mesa: Validate internalFormat with target in glTexStorage paths
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Dec 2013 22:38:16 +0000 (14:38 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 27 Jan 2014 21:21:43 +0000 (14:21 -0700)
commitaf0b34783e4e4f2a5d03444738a785f15bbb755b
treefab574383b7b5eac11da6415b5285763632b92ed
parent421b5958eb53fa3558b7be80f3f63aa77d49c336
mesa: Validate internalFormat with target in glTexStorage paths

Fixes the glTexStorage3D failure in
ext_packed_depth_stencil-depth-stencil-texture and
oes_packed_depth_stencil-depth-stencil-texture_gles2.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/teximage.c
src/mesa/main/texstorage.c