mirror of
https://github.com/brl/mutter.git
synced 2025-06-26 06:57:06 +00:00
44431da16430ba0f69f0b4c78f3d4fe148e2eaed

Commit 92a375ab4
changed the initial value of max_texcoord_attrib_unit
to -1 so that it could disable the texture coord array for the first
texture unit when there are no texture coords used in the vbo. However
max_texcoord_attrib_unit was an unsigned value so this actually became
G_MAXUINT. The disabling loop at the bottom still worked because
G_MAXUINT+1==0 but the check for whether any texture unit is greater
than max_texcoord_attrib_unit was failing so it would always end up
disabling all texture units. This is now fixed by changing
max_texcoord_attrib_unit to be signed.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%