Ian Romanick <i...@freedesktop.org> writes:

> On 04/25/2013 02:32 AM, Brian Paul wrote:
>> If we're in GL_COMPILE_AND_EXECUTE mode and inside glBegin, calling
>> glEndList() should generate an error.
>
> I wasn't aware that was an error.  Is there some spec language that 
> could be quoted in the code for that?

From the test:

 * From the GL 1.0 specification section 2.6.3, "GL Commands within
 * Begin/End"
 *
 *     "The only GL commands that are allowed within any Begin/End
 *      pairs are the commands for specifying vertex coordinates,
 *      vertex color, normal coordinates, and texture coordinates
 *      (Vertex, Color, Index, Normal, TexCoord), EvalCoord and
 *      EvalPoint commands (see section 5.1), commands for specifying
 *      lighting material parameters (Material commands see section
 *      2.12.2), display list invocation commands (CallList and
 *      CallLists see section 5.4), and the EdgeFlag
 *      command. Executing Begin after Begin has already been executed
 *      but before an End is issued generates the INVALID OPERATION
 *      error, as does executing End without a previous corresponding
 *      Begin. Executing any other GL command within Begin/End results
 *      in the error INVALID OPERATION."
 */

Attachment: pgpe0aSrEF8bB.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to