mirror of
https://github.com/brl/mutter.git
synced 2025-01-17 15:08:57 +00:00
Emmanuele Bassi
799fdf364e
Change the COGL texture constructor to use flags
Boolean arguments for functions are pretty evil and usually lead to combinatorial explosion of parameters in case multiple settings are added. In the case of the COGL texture constructors we have a boolean argument for enabling the auto-mipmapping; it is conceivable that we might want to add more settings for a COGL texture without breaking API or ABI compatibility, so the boolean argument should become a bitmask. The internals have not been changed: instead of checking for a non-zero value, we check for a bitmask being set.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%