[Mesa-dev] [PATCH 07/14] mesa: add missing error check in _mesa_EndList()

Eric Anholt eric at anholt.net
Thu Apr 25 15:15:08 PDT 2013


Ian Romanick <idr at 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."
 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130425/3ed1a448/attachment.pgp>


More information about the mesa-dev mailing list