[cogl] Force Cogl to always use the client side matrix stack
authorRobert Bragg <robert@linux.intel.com>
Wed, 17 Jun 2009 00:37:39 +0000 (01:37 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 30 Jun 2009 16:13:35 +0000 (17:13 +0100)
commit54159f5a1d029dbfff19711f5397fc9b99556ed4
tree3e9eaec95f56980ee31ad91439943a56985e882a
parent713af6535de11f27e1da9c1e233e8402d2864ab9
[cogl] Force Cogl to always use the client side matrix stack

Previously we only used the Cogl matrix stack API for indirect contexts, but
it's too costly to keep on requesting modelview matrices from GL (for
logging in the journal) even for direct rendering.

I also experimented with a patch for mesa to improve performance and
discussed this with upstream, but we agreed to consider the GL matrix API
essentially deprecated.  (For reference the GLES 2 and GL 3 specs have
removed the matrix APIs)
clutter/cogl/common/cogl-current-matrix.c