mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
4976d22940
Sometimes it would be useful if we could efficiently track when a matrix stack has been modified. For example on GLES2 we have to upload the modelview as a uniform to our glsl programs but because the modelview state is part of the framebuffer state it becomes a bit more tricky to know when to re-sync the value of the uniform with the framebuffer state. This adds an "age" counter to CoglMatrixStack which is incremented for any operation that effectively modifies the top of the stack so now we can save the age of the stack inside the pipeline whenever we update modelview uniform and later compare that with the stack to determine if it has changed. |
||
---|---|---|
.. | ||
cogl | ||
doc | ||
pango | ||
Makefile.am |