Add a sanity check for viewports with zero width/height.
Fixes issue 5466.
This commit is contained in:
parent
a2b71f1ed7
commit
ec859009b7
|
@ -386,5 +386,6 @@ void Renderer::RecordVideoMemory()
|
|||
|
||||
void UpdateViewport(Matrix44& vpCorrection)
|
||||
{
|
||||
g_renderer->UpdateViewport(vpCorrection);
|
||||
if (xfregs.viewport.wd != 0 && xfregs.viewport.ht != 0)
|
||||
g_renderer->UpdateViewport(vpCorrection);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue