summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.h
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2015-08-21 13:09:08 -0700
committerNanley Chery <nanley.g.chery@intel.com>2015-08-25 15:53:46 -0700
commit1d2a844e7d55645ea3d24fb589bec03695b3d2b1 (patch)
tree91d16c83093366dd4f70e1f412da3c77fcd3003f /src/mesa/main/teximage.h
parent26c549e69d12e44e2e36c09764ce2cceab262a1b (diff)
downloadexternal_mesa3d-1d2a844e7d55645ea3d24fb589bec03695b3d2b1.zip
external_mesa3d-1d2a844e7d55645ea3d24fb589bec03695b3d2b1.tar.gz
external_mesa3d-1d2a844e7d55645ea3d24fb589bec03695b3d2b1.tar.bz2
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>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r--src/mesa/main/teximage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index bf729da..a4736b5 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -133,7 +133,7 @@ _mesa_test_proxy_teximage(struct gl_context *ctx, GLenum target, GLint level,
extern GLboolean
_mesa_target_can_be_compressed(const struct gl_context *ctx, GLenum target,
- GLenum intFormat);
+ GLenum intFormat, GLenum *error);
extern GLuint
_mesa_tex_target_to_face(GLenum target);