[Fix] (TLS): drop the context reference before clearing the slot at thread exit

This commit is contained in:
2026-10-10 04:14:14 -04:00
parent 3b01067a9b
commit a6028ff38a
3 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ namespace {
// restores the process-wide state even when a gtest assertion unwinds the test body.
struct ScopedDirectGLESTextureBindings {
ScopedDirectGLESTextureBindings():
previousContext(MobileGL::Move(MobileGL::MG_State::pGLContext)),
previousContext(MobileGL::MG_State::pGLContext.Take()),
previousFunctions(MobileGL::MG_Backend::DirectGLES::g_GLESFuncs),
previousActiveUnit(MobileGL::MG_Backend::DirectGLES::TextureImpl::g_activeTextureUnit),
previousCache(MobileGL::MG_Backend::DirectGLES::TextureImpl::g_boundTexturesCache),