From 76b508557ee1e133ac85bb8a4b9c90df9f5d9c1a Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 28 Dec 2021 11:36:11 +0100 Subject: [PATCH] GLES: Fix missing precision for sampler2DMSArray We don't use sampler2DMS, but we do use sampler2DMSArray. I can't reproduce it on my phone, but a user who was running GLES on a Tegra X1 reported a shader compilation error related to this. --- Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp b/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp index 1413813cda..83761271d4 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp @@ -838,7 +838,7 @@ void ProgramShaderCache::CreateHeader() (is_glsles && g_ActiveConfig.backend_info.bSupportsPaletteConversion) ? "precision highp usamplerBuffer;" : "", - v > GlslEs300 ? "precision highp sampler2DMS;" : "", + v > GlslEs300 ? "precision highp sampler2DMSArray;" : "", v >= GlslEs310 ? "precision highp image2DArray;" : ""); }