mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-06 00:18:21 +00:00
Merge pull request #3125 from raven02/patch-15
Some games like FF Type-0 inits viewport as 0x0
This commit is contained in:
commit
12275d0e3a
@ -392,8 +392,9 @@ void GuessDrawingSize(int &drawing_width, int &drawing_height) {
|
||||
int fb_stride = gstate.fbwidth & 0x3C0;
|
||||
GetViewportDimensions(viewport_width, viewport_height);
|
||||
|
||||
// Generated FBO shouldn't greate than 512x512
|
||||
if ( viewport_width > 512 && viewport_height > 512 ) {
|
||||
// Generated FBO shouldn't greate than 512x512
|
||||
// Some games like FF Type-0 inits viewport as 0x0
|
||||
if ( viewport_width > 512 && viewport_height > 512 || viewport_width <= 1 && viewport_height <= 1 ) {
|
||||
viewport_width = default_width;
|
||||
viewport_height = default_height;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user