mesa: Make TexImage error cases about internalFormat more informative.
authorEric Anholt <eric@anholt.net>
Tue, 4 Feb 2014 22:04:14 +0000 (14:04 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Feb 2014 23:38:58 +0000 (15:38 -0800)
commita4f3e2ca0e6cb4b794109c869e7b872e4ce267af
treee2f2b37dff21a3c39633bc8b5a6e7a390da3dd1d
parent56b031d8aec952e445de21fb4aa849985f98f8eb
mesa: Make TexImage error cases about internalFormat more informative.

I tripped over one of these when debugging meta, and it's a lot nicer to
just see the internalFormat being complained about.

v2: Drop a note in the other errors path that there is one early return.

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