mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
fffcf579d5
The cost of glGetFloatv with Mesa is still representing a majority of our time in OpenGL for some applications, and the last thing left using this is the current-matrix API when getting the projection matrix. This adds a matrix stack for the projection matrix, so all getting, setting and modification of the projection matrix is now managed by Cogl and it's only when we come to draw that we flush changes to the matrix to OpenGL. This also brings us closer to being able to drop internal use of the deprecated OpenGL matrix functions, re: commit 54159f5a1d02