mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Add a sanity check for viewports with zero width/height.
Fixes issue 5466.
This commit is contained in:
@ -386,5 +386,6 @@ void Renderer::RecordVideoMemory()
|
||||
|
||||
void UpdateViewport(Matrix44& vpCorrection)
|
||||
{
|
||||
if (xfregs.viewport.wd != 0 && xfregs.viewport.ht != 0)
|
||||
g_renderer->UpdateViewport(vpCorrection);
|
||||
}
|
||||
|
Reference in New Issue
Block a user