OSDN Git Service

mesa/teximage: Add GL error parameter to _mesa_target_can_be_compressed
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 21 Aug 2015 20:09:08 +0000 (13:09 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 25 Aug 2015 22:53:46 +0000 (15:53 -0700)
commit1d2a844e7d55645ea3d24fb589bec03695b3d2b1
tree91d16c83093366dd4f70e1f412da3c77fcd3003f
parent26c549e69d12e44e2e36c09764ce2cceab262a1b
mesa/teximage: Add GL error parameter to _mesa_target_can_be_compressed

Enables _mesa_target_can_be_compressed to return the appropriate GL error
depending on it's inputs. Use the parameter to return the appropriate GL error
for ETC2 formats on GLES3.

Suggested-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/teximage.c
src/mesa/main/teximage.h
src/mesa/main/texstorage.c