mesa/teximage: report the correct function which triggered the error
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 7 Aug 2015 23:37:47 +0000 (16:37 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Wed, 12 Aug 2015 20:48:45 +0000 (13:48 -0700)
commit91698d1206b86ef1710291213145275a2dd06dd7
treecc808396b183cc1954104db9afe387e570abf288
parent5f1d5b1c7857f8680b47a7a450ee9e4530e22c6f
mesa/teximage: report the correct function which triggered the error

This function would always report that a dimension or size error occurred
in glTexImage even when it was called from glCompressedTexImage. Replace
the static string with the dynamically determined caller name.

Reviewed-by: Tapani Palli <tapani.palli@intel.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/teximage.c