mesa: only check errors when the state change in glCullFace()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 12:07:06 +0000 (14:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 17:08:44 +0000 (19:08 +0200)
commitc6ba70297992aaee4fa31ad3b1c4c0b6a1305177
treeb995b8feeeda9fbf881db83ee8344b2a68bb70a7
parentc787477378e2f79e1ceef23286998f528e6d02f0
mesa: only check errors when the state change in glCullFace()

When this GL call is a no-op, it should be a little faster in
the errors path only.

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