From b3dd524a1082efd12d4a796122c300a61ba016d9 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 26 Jul 2012 18:04:50 -0700 Subject: [PATCH] mesa/es: Validate glTexParameter pnames in Mesa code rather than the ES wrapper This also adds a missing extension (and API) check around GL_TEXTURE_CROP_RECT_OES. v2: Add proper core-profile, GLES1, and GLES3 filtering. GL_TEXTURE_MAX_LEVEL is (incorrectly) accepted in ES contexts. A future patch will add GL_APPLE_texture_max_level, and meta really needs this. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen --- src/mesa/main/APIspec.xml | 23 ------------- src/mesa/main/es1_conversion.c | 44 ++---------------------- src/mesa/main/texparam.c | 62 ++++++++++++++++++++++++++++------ 3 files changed, 54 insertions(+), 75 deletions(-) diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml index c2347e52284..af98440e037 100644 --- a/src/mesa/main/APIspec.xml +++ b/src/mesa/main/APIspec.xml @@ -226,29 +226,6 @@ - - - - - - - - - - - - - - - - - - - - - - -