1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Correct OGLVideo::updateScale() to avoid division by zero.

This commit is contained in:
Sergey Lipskiy 2014-12-24 16:01:34 +06:00
parent 1c232c6a4e
commit 3fd33ec64b

View File

@ -178,6 +178,8 @@ bool OGLVideo::resizeWindow()
void OGLVideo::updateScale()
{
if (VI.width == 0 || VI.height == 0)
return;
m_scaleX = m_width / (float)VI.width;
m_scaleY = m_height / (float)VI.height;
}