Skip to content

Commit

Permalink
Merge pull request #9923 from JosJuice/psgen-gles-bbox
Browse files Browse the repository at this point in the history
PixelShaderGen: Fix OpenGL ES bounding box compilation error
  • Loading branch information
JMC47 committed Jul 20, 2021
2 parents 1e3ea8c + 92fc4f1 commit 4614e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/PixelShaderGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void UpdateBoundingBox(float2 rawpos) {{
// avoiding EFB copy buffer overflow in affected games.
//
// For a more detailed explanation, see https://dolp.in/pr9801
int2 int_efb_scale = iround(1 / {efb_scale}.xy);
int2 int_efb_scale = iround(1.0 / {efb_scale}.xy);
if (int(rawpos.x) % int_efb_scale.x != int_efb_scale.x >> 1 ||
int(rawpos.y) % int_efb_scale.y != int_efb_scale.y >> 1) // right shift for fast divide by two
{{
Expand Down

0 comments on commit 4614e82

Please sign in to comment.