PixelShaderGen: Fix OpenGL ES bounding box compilation error
This commit is contained in:
parent
1e3ea8c468
commit
92fc4f1eca
|
@ -493,7 +493,7 @@ void UpdateBoundingBox(float2 rawpos) {{
|
||||||
// avoiding EFB copy buffer overflow in affected games.
|
// avoiding EFB copy buffer overflow in affected games.
|
||||||
//
|
//
|
||||||
// For a more detailed explanation, see https://dolp.in/pr9801
|
// 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 ||
|
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
|
int(rawpos.y) % int_efb_scale.y != int_efb_scale.y >> 1) // right shift for fast divide by two
|
||||||
{{
|
{{
|
||||||
|
|
Loading…
Reference in New Issue