[Fix] (MG_Impl/GLImpl, MG_IntegrationTest, MG_IntegrationTest/Scenarios, MG_Remote/Client, MG_Test/Texture, scripts/data): make by-name texture calls act on the named texture

- The 19 calls that bound their texture first now share object cores with the target forms
- GL 4.6 rules the binding hid: cube maps in TextureSubImage3D and level queries, named target errors
This commit is contained in:
2026-10-16 14:47:50 -04:00
parent 28bf0c1653
commit 230a90a439
10 changed files with 1498 additions and 2154 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ namespace MobileGL::MG_Remote::Client {
const MG_Backend::FormatCapabilityCache& Formats() const;
const String& ApiVersion() const;
// The SERVER's backend type, never a new "Remote" enumerator: frontend branches
// switch on this (GL_Framebuffer.cpp:47, GL_Texture.cpp:6536, CompileEnv.cpp:122) and
// a value they do not know silently takes the wrong arm.
// switch on this (ActiveBackendRejectsDistinctDepthStencil, CaptureCompileEnv) and a
// value they do not know silently takes the wrong arm.
BackendType Backend() const;
Uint64 CallMask() const;
+2 -3
View File
@@ -632,9 +632,8 @@ namespace MobileGL::MG_Remote::Client {
snapshot->apiVersion() == nullptr ? String{} : String{snapshot->apiVersion()->c_str()};
// THE SERVER'S BACKEND TYPE, NEVER A NEW "Remote" ENUMERATOR and never guessed from
// the renderer string: GL_Framebuffer.cpp:47, GL_Texture.cpp:6536 and
// CompileEnv.cpp:122 SWITCH on it, and a value they do not know takes a wrong arm
// rather than failing.
// the renderer string: ActiveBackendRejectsDistinctDepthStencil and CaptureCompileEnv
// switch on it, and a value they do not know takes a wrong arm rather than failing.
const Uint32 rawBackend = snapshot->backendType();
if (rawBackend >= static_cast<Uint32>(BackendType::BackendTypeCount)) {
MGLOG_E("MG_Remote client: CapsSnapshot names backend type %u, which this build "