mesa: move check for no-op glFrontFace call earlier
authorBrian Paul <brianp@vmware.com>
Wed, 22 Jul 2015 00:44:07 +0000 (18:44 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Jul 2015 00:44:07 +0000 (18:44 -0600)
commit61ed88b1ddf8aea6f74518bcae5c13d9bf4ae822
tree25ad31346879f787cd154e16a83b126e5920b932
parent24799c422365f609403ccde0759c77b0179328d3
mesa: move check for no-op glFrontFace call earlier

If the new mode matches the current mode, there can be no error.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/polygon.c