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

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/viewport.c