diff --git a/rpcs3/Emu/RSX/Common/GLSLCommon.h b/rpcs3/Emu/RSX/Common/GLSLCommon.h index e76fe32959..cc6a934bf6 100644 --- a/rpcs3/Emu/RSX/Common/GLSLCommon.h +++ b/rpcs3/Emu/RSX/Common/GLSLCommon.h @@ -65,6 +65,7 @@ namespace program_common template_body += " break;\n"; template_body += " }\n"; template_body += "\n"; + template_body += " result.x = max(result.x, 0.);\n"; template_body += " result.y = clamp(result.y, 0., 1.);\n"; template_body += " return result;\n"; template_body += "}\n\n";