From 8df3f9bd5f7626a4548e9901c0b7af33a21af8a6 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 27 Jul 2012 15:57:09 -0700 Subject: [PATCH] mesa/es: Validate glGetMaterial pname in Mesa code rather than the ES wrapper Fixes a bug that glGetMaterial[fx]v in ES1 contexts would (try to) allow queries of GL_AMBIENT_AND_DIFFUSE. This enum can only be used in glMaterial, not in the get. Signed-off-by: Ian Romanick --- src/mesa/main/APIspec.xml | 20 -------------------- src/mesa/main/es1_conversion.c | 1 - src/mesa/main/light.c | 6 ++++++ 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml index 6d6462ca49b..e7777a7cbcf 100644 --- a/src/mesa/main/APIspec.xml +++ b/src/mesa/main/APIspec.xml @@ -612,26 +612,6 @@ - - - - - - - - - - - - - - - - - - - -