mirror of
https://github.com/brl/mutter.git
synced 2025-02-14 04:14:10 +00:00
![Neil Roberts](/assets/img/avatar_default.png)
The uniforms for the alpha test reference value and point size on GLES2 are updating using similar code. This generalizes the code so that there is a static array of predefined builtin uniforms which contains the uniform name, a pointer to a function to get the value from the pipeline, a pointer to a function to update the uniform and a flag representing which CoglPipelineState change affects the uniform. The uniforms are then updated in a loop. This should simplify adding more builtin uniforms.