mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
When clamping height to 512, try region/scissor.
This commit is contained in:
parent
78c83e122d
commit
304d372f48
1 changed files with 7 additions and 1 deletions
|
@ -677,7 +677,13 @@ void FramebufferManager::EstimateDrawingSize(int &drawing_width, int &drawing_he
|
|||
}
|
||||
|
||||
// Assume no buffer is > 512 tall, it couldn't be textured or displayed fully if so.
|
||||
drawing_height = std::min(drawing_height, 512);
|
||||
if (drawing_height > 512) {
|
||||
if (region_height < 512) {
|
||||
drawing_height = region_height;
|
||||
} else if (scissor_height < 512) {
|
||||
drawing_height = scissor_height;
|
||||
}
|
||||
}
|
||||
|
||||
if (viewport_width != region_width) {
|
||||
// The majority of the time, these are equal. If not, let's check what we know.
|
||||
|
|
Loading…
Add table
Reference in a new issue