mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
7a372bc001
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.