[Mesa-dev] [PATCH] mesa: forbid UseProgram to be called inside Begin/End

Brian Paul brian.e.paul at gmail.com
Mon May 30 06:23:31 PDT 2011


On Mon, May 30, 2011 at 3:17 AM, Marek Olšák <maraeo at gmail.com> wrote:
> 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.

Agreed.  It seems to me that quite a few other shader-related
functions should also be illegal between glBegin/End, such as all the
glUniform functions.

Reviewed-by: Brian Paul <brianp at vmware.com>

-Brian


More information about the mesa-dev mailing list