gl_shader_gen.cpp:fix implicit type conversion error for gles

This commit is contained in:
SachinVin 2020-05-25 23:20:36 +05:30 committed by xperia64
parent 89422464dc
commit 0430b714ea

View File

@ -1555,8 +1555,8 @@ vec4 secondary_fragment_color = vec4(0.0);
if (state.shadow_rendering) {
out += R"(
#if ALLOW_SHADOW
uint d = uint(clamp(depth, 0.0, 1.0) * 0xFFFFFF);
uint s = uint(last_tex_env_out.g * 0xFF);
uint d = uint(clamp(depth, 0.0, 1.0) * float(0xFFFFFF));
uint s = uint(last_tex_env_out.g * float(0xFF));
ivec2 image_coord = ivec2(gl_FragCoord.xy);
uint old = imageLoad(shadow_buffer, image_coord).x;