mesa: move no-change glDepthFunc check earlier
authorBrian Paul <brianp@vmware.com>
Fri, 15 May 2015 18:12:04 +0000 (12:12 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2015 17:35:46 +0000 (11:35 -0600)
commit56b2b3d385170ab33934ec71fd9d0a6e0e1af9a8
treeab756ad508bb235c1585602653db34c4976d5abc
parent4dd72fe70d6800525302c734d161be411ed9f7e0
mesa: move no-change glDepthFunc check earlier

If the incoming func matches the current state it must be a legal
value so we can do this before the switch statement.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/depth.c