mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
Neil Roberts
242d9a5002
cogl-pipeline-progend-glsl: Generalize updating GLES2 uniforms
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.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%