Module: Mesa Branch: 7.10 Commit: 10bf7aeeebac815a5519dba0ba2afbaae6ac3245 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=10bf7aeeebac815a5519dba0ba2afbaae6ac3245
Author: Marek Olšák <[email protected]> Date: Sun May 29 18:58:45 2011 +0200 mesa: forbid UseProgram to be called inside Begin/End The spec doesn't state it should be an error, but. We have this piglit test useprogram-inside-begin that passes with this commit. No idea what's correct. NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 29ceeeba2004f71ccb91ce67f518dc1bf0ca6b17) --- src/mesa/main/shaderapi.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 3378efa..37d185f 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1583,6 +1583,8 @@ _mesa_UseProgramObjectARB(GLhandleARB program) struct gl_transform_feedback_object *obj = ctx->TransformFeedback.CurrentObject; + ASSERT_OUTSIDE_BEGIN_END(ctx); + if (obj->Active) { _mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgram(transform feedback active)"); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
