mesa: make glPopMatrix a no-op if the matrix hasn't changed
authorMarek Olšák <marek.olsak@amd.com>
Tue, 23 Aug 2022 04:13:37 +0000 (00:13 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 22:58:16 +0000 (22:58 +0000)
commite6ecd22140fe6c6e8ac26966c8409f7254370479
treefd56c36e3060ab114e053679863eff269f752b4d
parent0b00a158ad49b495bd5e6558e7eb0dd06b9ba7f4
mesa: make glPopMatrix a no-op if the matrix hasn't changed

This happens a lot with viewperf because glMultMatrixf contains identity
matrices.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>
src/mesa/main/matrix.c
src/mesa/main/mtypes.h