mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 08:24:09 +00:00

At the moment Cogl doesn't do much batching of quads so most of the time we are flushing a single quad at a time. This patch simplifies how we submit those quads to OpenGL by using glDrawArrays with GL_TRIANGLE_FAN mode instead of sending indexed vertices using GL_TRIANGLES mode. Note: I hope to follow up soon with changes that improve our batching and also move the indices into a VBO so they don't need to be re-validated every time we call glDrawElements.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%