mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Add a sanity check for viewports with zero width/height.
Fixes issue 5466.
This commit is contained in:
parent
a2b71f1ed7
commit
ec859009b7
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue