mirror of
https://github.com/brl/mutter.git
synced 2025-03-06 13:18:15 +00:00

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.