diff options
| author | JosJuice <josjuice@gmail.com> | 2021-12-28 19:52:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-28 19:52:39 +0100 |
| commit | 2ab331dcdffcf22dab5297fbe41ab32fbbfd638a (patch) | |
| tree | 79038c37ef44eb22adb0da73673ce96c47daaa48 /Source/Core | |
| parent | 2a34118e1e75f68d326c75cfb9963aed51ba6ec1 (diff) | |
| parent | a96cfe253114d28f7318d33eb9bb8cb0017bd45d (diff) | |
Merge pull request #10314 from JosJuice/gles-lod-bias-float
GLES: Fix LOD bias int/float mismatch
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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")); } |
