mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -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)
|
void UpdateViewport(Matrix44& vpCorrection)
|
||||||
{
|
{
|
||||||
|
if (xfregs.viewport.wd != 0 && xfregs.viewport.ht != 0)
|
||||||
g_renderer->UpdateViewport(vpCorrection);
|
g_renderer->UpdateViewport(vpCorrection);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user