From: Eric Anholt Date: Thu, 10 May 2012 21:56:48 +0000 (-0700) Subject: mesa: Throw error on glGetActiveUniform inside Begin/End. X-Git-Tag: 062012170305~251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef691885c92abcd085d89fc30feeda87961773ab;p=profile%2Fivi%2Fmesa.git mesa: Throw error on glGetActiveUniform inside Begin/End. Fixes piglit GL_ARB_shader_objeccts/getactiveuniform-beginend. Reviewed-by: Brian Paul Reviewed-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 08d330a..f5d998f 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -46,6 +46,8 @@ _mesa_GetActiveUniformARB(GLhandleARB program, GLuint index, struct gl_shader_program *shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); + ASSERT_OUTSIDE_BEGIN_END(ctx); + if (!shProg) return;