mesa: refactor _mesa_valid_prim_mode()
authorBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 01:15:32 +0000 (19:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 15:03:14 +0000 (09:03 -0600)
commitbb459f6295736d55ab5855d7b19e5e49aaf9af41
tree6938a45cfe91d7c6689aa6697a63f255bc2adf93
parent8be093e2f6301ff9c2728b8a24c83b401e80f070
mesa: refactor _mesa_valid_prim_mode()

...in terms of new _mesa_is_valid_prim_mode().  We need a mode validater
function that doesn't depend on current state for the display list code.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/api_validate.c
src/mesa/main/api_validate.h