mesa: Fix error reporting in _mesa_invalidate_pbo_{compressed_,}teximage.
authorPaul Berry <stereotype441@gmail.com>
Mon, 31 Dec 2012 17:00:41 +0000 (09:00 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 2 Jan 2013 18:28:23 +0000 (10:28 -0800)
commit261ee4d907cc2e06a578e1597f6a55f1997ab52c
tree2b41c41ab515f7b1061e48d473fad803b62e8dac
parentc7d3254b8e0bb0859c4ed969f07b4585af5577b7
mesa: Fix error reporting in _mesa_invalidate_pbo_{compressed_,}teximage.

The old error reporting was completely bogus, passing _mesa_error() a
format string that didn't even match the remaining arguments.  Also,
in many cases the number of dimensions in the TexImage call was not
preserved in the error message (e.g. an error in glTexImage2D was
reported simply as an error in glTexImage).

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/main/pbo.c
src/mesa/main/pbo.h
src/mesa/main/texstore.c