Fix Summon Night 5 shadow breaking

This commit is contained in:
raven02 2013-11-13 22:42:16 +08:00
parent ab3fe9ba86
commit fe15d88cd8

View File

@ -667,7 +667,7 @@ void FramebufferManager::SetRenderFrameBuffer() {
vfb = v;
// Update fb stride in case it changed
vfb->fb_stride = fb_stride;
if (v->format != fmt) {
if (v->format != fmt || (v->width < drawing_width && v->height < drawing_height)) {
v->width = drawing_width;
v->height = drawing_height;
v->format = fmt;