Add a sanity check for viewports with zero width/height.

Fixes issue 5466.
This commit is contained in:
NeoBrainX 2012-08-07 01:34:20 +02:00
parent a2b71f1ed7
commit ec859009b7

View File

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