From 9d99995e046fcc52cb30ab68effbcb78b3dd8146 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 15 Sep 2018 23:17:47 -0400 Subject: [PATCH] small revision to 14ad5a3907d7d6f22c00d01c44448b3c9c7429fc to work better in some cases with really, really weird window sizes --- .../DisplayManager/DisplayManager.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs b/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs index 0ec9addf36..fc7ccbc84b 100644 --- a/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs +++ b/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs @@ -614,13 +614,14 @@ namespace BizHawk.Client.EmuHawk if (!job.simulate && !job.offscreen) { GLManager.Activate(CR_GraphicsControl); - } - if (job.chain_outsize.Width == 0 || job.chain_outsize.Height == 0) - { - //this has to be a NOP, because lots of stuff will malfunction on a 0-sized viewport - UpdateSourceDrawingWork(job); //but we still need to do this, because of vsync - return null; + if (job.chain_outsize.Width == 0 || job.chain_outsize.Height == 0) + { + //this has to be a NOP, because lots of stuff will malfunction on a 0-sized viewport + if (CurrentFilterProgram != null) + UpdateSourceDrawingWork(job); //but we still need to do this, because of vsync + return null; + } } IVideoProvider videoProvider = job.videoProvider;