From 6c889e556b8b3068b906da2254a2b95505b656c0 Mon Sep 17 00:00:00 2001 From: raven02 Date: Mon, 12 Aug 2013 02:15:42 +0800 Subject: [PATCH] Some games like FF Type-0 inits viewport as 0x0 --- GPU/GLES/Framebuffer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 513835a74..1e55bb370 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -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; }