From 872876961d3b1f6bdfeac64e873920f2783fd068 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 20 Aug 2026 13:08:22 -0400 Subject: [PATCH] [Fix] (GLState): pin the storage-binding ceiling's min/max to Int so no platform can widen either argument --- MobileGL/MG_State/GLState/ProgramState/ShaderCompileTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileGL/MG_State/GLState/ProgramState/ShaderCompileTask.cpp b/MobileGL/MG_State/GLState/ProgramState/ShaderCompileTask.cpp index 4eec41ba..41fdeb37 100644 --- a/MobileGL/MG_State/GLState/ProgramState/ShaderCompileTask.cpp +++ b/MobileGL/MG_State/GLState/ProgramState/ShaderCompileTask.cpp @@ -149,7 +149,7 @@ namespace { const MobileGL::Int frontendPoints = static_cast(MobileGL::MG_State::GLState::BufferBindingPointCount); if (!env.HasBackend()) return frontendPoints; - return std::min(frontendPoints, std::max(env.params.MaxShaderStorageBufferBindings, 0)); + return std::min(frontendPoints, std::max(env.params.MaxShaderStorageBufferBindings, 0)); } // The half of a compile that depends on nothing but the source text, the stage and the