mesa: factor out enum -> matrix stack lookup
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 7 May 2019 09:20:20 +0000 (11:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 3 Jun 2019 19:28:49 +0000 (15:28 -0400)
commit28ce704bb012e0510bfb90659020764800e62e82
tree095c8a2156030e7f1707255963cef4d0385e81c6
parentb69584ad6983b7e2d025ea1cc4ace78c1e46002f
mesa: factor out enum -> matrix stack lookup

Split this out from glMatrixMode since we're about to need it
independently for EXT_DSA.

Adapted from Chris Forbes commit.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/matrix.c