mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
glPush/PopAttrib had 2 defects: - Only MaxTextureUnits were pushed and popped (which is 8 at most). - If some texture units had been unused, we would still push/pop them. This fix changes how many units we push and pop to NumCurrentTexUsed, which is the maximum texture unit + 1 that was used to by the user. This commit: - In glPushAttrib, save NumCurrentTexUsed texture units. - In glPopAttrib, restore the same number of texture units, and if NumCurrentTexUsed has increased since glPushAttrib, bind 0 in the newly used units to get them to the state before glPushAttrib. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8181> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| broadcom | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| glx | ||
| gtest | ||
| hgl | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| util | ||
| virtio | ||
| vulkan | ||
| meson.build | ||
| SConscript | ||