mirror of
https://github.com/brl/mutter.git
synced 2025-02-10 02:14:09 +00:00
![Neil Roberts](/assets/img/avatar_default.png)
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.