mesa: remove gl_texture_object references from glPush/PopAttrib stack
authorMarek Olšák <marek.olsak@amd.com>
Sat, 3 Oct 2020 04:55:57 +0000 (00:55 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Dec 2020 11:52:11 +0000 (11:52 +0000)
commitc0456a65658b9e5dea0e6f1fb48ae4bf0add23ea
tree12166dbc9aba95df189dc7124a697472d8f9a5e7
parent959380dcb0920e3f26aaddfeab68650077675040
mesa: remove gl_texture_object references from glPush/PopAttrib stack

I don't see why this is needed and it's not used anywhere.
As long as apps don't call glDeleteTextures, nothing will release them.
And even if they do, we don't use the saved textures anywhere.

Also, BindTexture will fail for deleted textures anyway, so they can't be
popped. The existing code already binds the Name that was saved, not
the texture object that was saved.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
src/mesa/main/attrib.c
src/mesa/main/mtypes.h