mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
Read-only mirror of https://gitlab.gnome.org/GNOME/mutter
74cd43e01c
Previously the texture unit settings were stored in growable GArrays and every time a new texture unit was encountered it would expand the arrays. However the array wasn't copied when stored in a CoglGles2WrapperSettings struct so all settings had the same array. This meant that it wouldn't detect that a different program is needed if a texture unit is disabled or enabled. The texture unit settings arrays are all now a fixed size and the enabledness of each unit is stored in a bit mask. Therefore the settings can just be copied around by assignment as before. This puts a limit on the number of texture units accessible by Cogl but I think it is worth it to make the code simpler and more efficient. The material API already poses a limit on the number of texture units it can use. |
||
---|---|---|
common | ||
doc/reference/cogl | ||
gl | ||
gles | ||
cogl-color.h | ||
cogl-deprecated.h | ||
cogl-fixed.h | ||
cogl-material.h | ||
cogl-matrix.h | ||
cogl-offscreen.h | ||
cogl-path.h | ||
cogl-shader.h | ||
cogl-texture.h | ||
cogl-types.h | ||
cogl-vertex-buffer.h | ||
cogl.h.in | ||
Makefile.am | ||
TODO |