GPU: Assume a scissor of 481x273 is a mistake.

We already do this for viewport, and only when region is still a correct
size.  Helps flicker in Everybody's Golf.
This commit is contained in:
Unknown W. Brackets 2020-03-21 23:47:50 -07:00
parent 0d2acb6d73
commit a95f3111cf

View File

@ -234,6 +234,10 @@ void FramebufferManagerCommon::EstimateDrawingSize(u32 fb_address, GEBufferForma
drawing_width = scissor_width;
drawing_height = std::max(drawing_height, scissor_height);
}
if (scissor_width == 481 && region_width == 480 && scissor_height == 273 && region_height == 272) {
drawing_width = 480;
drawing_height = 272;
}
} else {
// If viewport wasn't valid, let's just take the greatest anything regardless of stride.
drawing_width = std::min(std::max(region_width, scissor_width), fb_stride);