Skip to content

st/mesa: Clear texture's views when texture is removed from Shared->TexObjects

Danylo Piliaiev requested to merge GL/mesa:wip/fix-shared-textures-delete into master

If texture is shared between several contexts, calling glDeleteTextures will remove it from ctx->Shared->TexObjects - which makes impossible for contexts, when destroyed, to release their views to this texture. Which leaves dangling pointers to destroyed contexts.

Closes: #2960 (closed)

Intel CI: https://mesa-ci.01.org/global_logic/builds/269/group/63a9f0ea7bb98050796b649e85481845

Is this a good solution? I'm not exactly sure.

Merge request reports