mirror of https://github.com/PCSX2/pcsx2.git
GS: Fix divide by zero error
This commit is contained in:
parent
9ca9db8770
commit
50ff3649b1
|
@ -516,7 +516,7 @@ public:
|
|||
}
|
||||
|
||||
// Cap the framebuffer read to the maximum display height, otherwise the hardware renderer gets messy.
|
||||
int min_mag = std::min(PCRTCDisplays[0].magnification.y, PCRTCDisplays[1].magnification.y);
|
||||
int min_mag = std::max(1, std::min(PCRTCDisplays[0].magnification.y, PCRTCDisplays[1].magnification.y));
|
||||
combined_rect.w = std::min(combined_rect.w, combined_rect.y + (max_height / min_mag));
|
||||
return GSVector2i(combined_rect.z, combined_rect.w);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue