diff options
| author | JosJuice <josjuice@gmail.com> | 2021-07-20 11:32:53 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2021-07-20 11:39:32 +0200 |
| commit | 92fc4f1eca8fca7b76066051048c7a96f404ef3d (patch) | |
| tree | 4cedae72f25cc19c4ad5a9e61ad6c392f384266f /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 1e3ea8c4681295d7047a1d4fd5484604a153a33b (diff) | |
PixelShaderGen: Fix OpenGL ES bounding box compilation error
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index f6bc32fe4c..8827c47868 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -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 {{ |
