mesa: Refactor internalFormat / target checks to a separate function
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Dec 2013 22:35:01 +0000 (14:35 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 27 Jan 2014 21:21:42 +0000 (14:21 -0700)
commit421b5958eb53fa3558b7be80f3f63aa77d49c336
tree701a7f142dc4ae89ce0f50470d573c62b0ec1326
parent88db6ad7dbe14e2f149d655cfe5b983e1a8751da
mesa: Refactor internalFormat / target checks to a separate function

We need almost identical code in the glTexStorage path.

v2: Fix typo in a comment noticed by Topi.

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/teximage.h