[MG_Backend] (Disaggregated): preserve server-owned texture contents during GLES image promotion

This commit is contained in:
2026-09-20 11:11:50 -04:00
parent bb3a51995c
commit c1bf7e15c3
5 changed files with 256 additions and 36 deletions
@@ -14485,6 +14485,10 @@ namespace MobileGL::MG_Backend::DirectGLES {
return true;
}
#if MOBILEGL_BUILD_DISAGGREGATED
#include "WireTextureReadback.inc"
#endif
static Bool IsLegacyNativeReadPixelsFormat(GLenum format) {
return format == GL_RGBA || format == GL_RGBA_INTEGER || format == GL_RED || format == GL_RED_INTEGER ||
format == GL_DEPTH_COMPONENT || format == GL_STENCIL_INDEX || format == GL_DEPTH_STENCIL;