diff options
author | Ian Romanick <[email protected]> | 2012-07-26 19:18:58 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-23 10:15:31 -0700 |
commit | 409620e47748479aaef593dc9bec0d6dd520e14a (patch) | |
tree | ea178aa35db5e586e0161d1aa094fff3154be351 /src/mesa/main/teximage.h | |
parent | 0686ccac950bac1a650400b29c47ddaafea22fa9 (diff) |
mesa/es: Validate glTexImage format, type, and internalFormat in Mesa code rather than the ES wrapper
v2: Add proper GLES3 filtering.
v3: Collapse ALPHA, LUMINANCE, and LUMINANCE_ALPHA cases per review
comment from Ken.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r-- | src/mesa/main/teximage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 66a0c88950b..739c5dda132 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -140,6 +140,10 @@ _mesa_tex_target_to_face(GLenum target); extern GLint _mesa_get_texture_dimensions(GLenum target); +extern GLenum +_mesa_es_error_check_format_and_type(GLenum format, GLenum type, + unsigned dimensions); + /** * Lock a texture for updating. See also _mesa_lock_context_textures(). */ |