small revision to 14ad5a3907 to work better in some cases with really, really weird window sizes

This commit is contained in:
zeromus 2018-09-15 23:17:47 -04:00
parent 0869c4b31c
commit 9d99995e04
1 changed files with 7 additions and 6 deletions

View File

@ -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;