mesa: only check errors when the state change in glProvokingVertex()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 12:07:05 +0000 (14:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 17:08:44 +0000 (19:08 +0200)
commitc787477378e2f79e1ceef23286998f528e6d02f0
treeece36b24e268a466dec8ee40de16c6ca5a286edc
parent6d37bcdb79f9cada7c67da833a21f6a5b9b0c18f
mesa: only check errors when the state change in glProvokingVertex()

When this GL call is a no-op, it should be a little faster.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/light.c