[Fix] (MG_Backend/DirectGLES): re-push the texture parameters a regenerated driver texture has lost, instead of trusting caches that outlived it

This commit is contained in:
2026-08-12 15:22:39 -04:00
parent 6b6623ae72
commit 9ee2e0a1db
2 changed files with 20 additions and 1 deletions
@@ -707,6 +707,10 @@ namespace MobileGL::MG_Backend::DirectGLES {
GLenum m_cacheDepthStencilTextureMode = GL_DEPTH_COMPONENT;
Uint16 m_syncedSamplerVersion = 0;
Uint16 m_syncedTextureParamsVersion = 0;
// Set when the driver texture underneath was regenerated and has therefore lost every
// parameter already pushed onto it: the params-version early-out has to be overridden
// once, or an unchanged version would skip the re-push forever.
Bool m_forceTextureParamsResync = false;
};
void ActivateTextureUnit(Uint unit);