diff --git a/rpcs3/Emu/RSX/Core/RSXDrawCommands.cpp b/rpcs3/Emu/RSX/Core/RSXDrawCommands.cpp index e026f9813d..46edb42175 100644 --- a/rpcs3/Emu/RSX/Core/RSXDrawCommands.cpp +++ b/rpcs3/Emu/RSX/Core/RSXDrawCommands.cpp @@ -589,7 +589,7 @@ namespace rsx { if (REGS(m_ctx)->clip_planes_mask() == 0) [[ likely ]] { - *reinterpret_cast(buffer) = 0u; + *reinterpret_cast(buffer) = 0b0101010101010101; return; } @@ -631,7 +631,7 @@ namespace rsx break; case rsx::user_clip_plane_op::less_than: - clip_configuration_field |= CLIP_DISTANCE_FACTOR(2) << shift_offset; + clip_configuration_field |= CLIP_DISTANCE_FACTOR(-1) << shift_offset; break; } } diff --git a/rpcs3/Emu/RSX/Program/GLSLCommon.cpp b/rpcs3/Emu/RSX/Program/GLSLCommon.cpp index 0ae8ab8993..afebcce7ed 100644 --- a/rpcs3/Emu/RSX/Program/GLSLCommon.cpp +++ b/rpcs3/Emu/RSX/Program/GLSLCommon.cpp @@ -182,7 +182,7 @@ namespace glsl OS << "#define CLIP_PLANE_DISABLED 1\n" "#define is_user_clip_enabled(idx) (_get_bits(get_user_clip_config(), idx * 2, 2) != CLIP_PLANE_DISABLED)\n" - "#define user_clip_factor(idx) float(_get_bits(get_user_clip_config(), idx * 2, 2) - 1)\n\n"; + "#define user_clip_factor(idx) (float(_get_bits(get_user_clip_config(), idx * 2, 2)) - 1.f)\n\n"; } if (props.domain == glsl::program_domain::glsl_fragment_program)