mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 16:34:10 +00:00

The GLES 2 wrapper needs to set up some state before each draw. Previously this was acheived by wrapping glDrawArrays. Since the multiple-texture-rectangle branch merge, glDrawElements is used instead so we also need a wrapper for that. It was also directly calling glBindTexture. GLES 2 uses a wrapper for this function so that it can cope with GL_ALPHA format textures. The format of the current texture needs to be stored as well as the target and object number for this to work.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%