summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-12-06 14:51:29 -0800
committerJordan Justen <jordan.l.justen@intel.com>2013-01-14 20:47:59 -0800
commit9cfcac45283e12188de915bd6be3522f13b690d3 (patch)
treefda403d449ecb68435db876f4d0d512e10eb5b8c /src/mesa/main/glformats.h
parentcf300eaab68153d818f6c29f4b487162a589dcfa (diff)
downloadexternal_mesa3d-9cfcac45283e12188de915bd6be3522f13b690d3.zip
external_mesa3d-9cfcac45283e12188de915bd6be3522f13b690d3.tar.gz
external_mesa3d-9cfcac45283e12188de915bd6be3522f13b690d3.tar.bz2
glformats: add _mesa_es3_error_check_format_and_type
This function checks for ES3 compatible format/type/internalFormat/dimension combinations. [jordan.l.justen@intel.com: additional tweaks for gles3-gtf] Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index fe604dd..4cbc82f 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -120,6 +120,11 @@ extern GLenum
_mesa_es_error_check_format_and_type(GLenum format, GLenum type,
unsigned dimensions);
+extern GLenum
+_mesa_es3_error_check_format_and_type(GLenum format, GLenum type,
+ GLenum internalFormat,
+ unsigned dimensions);
+
#ifdef __cplusplus
}