[Fix] (GLState): pin the storage-binding ceiling's min/max to Int so no platform can widen either argument

This commit is contained in:
2026-08-20 13:08:22 -04:00
parent e2923a239f
commit 872876961d
@@ -149,7 +149,7 @@ namespace {
const MobileGL::Int frontendPoints =
static_cast<MobileGL::Int>(MobileGL::MG_State::GLState::BufferBindingPointCount);
if (!env.HasBackend()) return frontendPoints;
return std::min(frontendPoints, std::max(env.params.MaxShaderStorageBufferBindings, 0));
return std::min<MobileGL::Int>(frontendPoints, std::max<MobileGL::Int>(env.params.MaxShaderStorageBufferBindings, 0));
}
// The half of a compile that depends on nothing but the source text, the stage and the