mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
GLES: Fix LOD bias int/float mismatch
Another simple GLES shader compilation error.
This commit is contained in:
parent
2a34118e1e
commit
a96cfe2531
@ -651,7 +651,7 @@ uint WrapCoord(int coord, uint wrap, int size) {{
|
|||||||
if (!host_config.backend_sampler_lod_bias)
|
if (!host_config.backend_sampler_lod_bias)
|
||||||
{
|
{
|
||||||
out.Write(" uint texmode0 = samp_texmode0(texmap);\n"
|
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",
|
" return iround(255.0 * texture(tex, coords, lod_bias));\n",
|
||||||
BitfieldExtract<&SamplerState::TM0::lod_bias>("texmode0"));
|
BitfieldExtract<&SamplerState::TM0::lod_bias>("texmode0"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user