mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 01:48:55 +00:00
Neil Roberts
fbe9e80a07
cogl: Cache the value for GL_MAX_TEXTURE_UNITS
The function _cogl_get_max_texture_units is called quite often while rendering and it returns a constant value so we might as well cache the result. Calling glGetInteger on Mesa can be expensive because it flushes a lot of state.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%