From c9689e3e55928d4a95f1c10c7a33fffba8cbdece Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 26 Jul 2012 18:15:40 -0700 Subject: mesa/es: Validate glGetTexParameter 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 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 | 16 -------- src/mesa/main/texparam.c | 97 ++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 84 insertions(+), 29 deletions(-) diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml index af98440e037..09ba424609b 100644 --- a/src/mesa/main/APIspec.xml +++ b/src/mesa/main/APIspec.xml @@ -1174,22 +1174,6 @@ - - - - - - - - - - - - - - - -