From 125a440e71b320dc1adea6e6278440f3ecb9565e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 8 Jun 2014 15:46:23 -0700 Subject: [PATCH] Try scissor/region height if viewport is == 512. Fixes Tales of Phantasia X menu in towns, where it uses a 480 tall framebuffer but specifies a 512 tall viewport. --- GPU/GLES/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 42fbb9e546..c096cbc125 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -673,7 +673,7 @@ 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. - if (drawing_height > MAX_FRAMEBUF_HEIGHT) { + if (drawing_height >= MAX_FRAMEBUF_HEIGHT) { if (region_height < MAX_FRAMEBUF_HEIGHT) { drawing_height = region_height; } else if (scissor_height < MAX_FRAMEBUF_HEIGHT) {