mesa: forbid UseProgram to be called inside Begin/End
authorMarek Olšák <maraeo@gmail.com>
Sun, 29 May 2011 16:58:45 +0000 (18:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 30 May 2011 14:26:02 +0000 (16:26 +0200)
commit29ceeeba2004f71ccb91ce67f518dc1bf0ca6b17
tree2245ea945f0898486a7809dc7aff83f817a5e5b3
parent1b37a41661f791b22f12b8477053a8dff6e33d6d
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 <brianp@vmware.com>
src/mesa/main/shaderapi.c