From a96cfe253114d28f7318d33eb9bb8cb0017bd45d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 28 Dec 2021 19:19:22 +0100 Subject: [PATCH] GLES: Fix LOD bias int/float mismatch Another simple GLES shader compilation error. --- Source/Core/VideoCommon/PixelShaderGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index ce607242c0..6419efdea5 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -651,7 +651,7 @@ uint WrapCoord(int coord, uint wrap, int size) {{ if (!host_config.backend_sampler_lod_bias) { out.Write(" uint texmode0 = samp_texmode0(texmap);\n" - " float lod_bias = {} / 256.0f;\n" + " float lod_bias = float({}) / 256.0f;\n" " return iround(255.0 * texture(tex, coords, lod_bias));\n", BitfieldExtract<&SamplerState::TM0::lod_bias>("texmode0")); }