Prevent infinite loop when grid size not defined.
This commit is contained in:
parent
ed9153a786
commit
c71c1d4d1a
|
@ -1253,7 +1253,7 @@ void OPENGL_GAL::DrawGrid()
|
|||
// force flush
|
||||
nonCachedManager->EndDrawing();
|
||||
|
||||
if( !gridVisibility )
|
||||
if( !gridVisibility || gridSize.x == 0 || gridSize.y == 0 )
|
||||
return;
|
||||
|
||||
VECTOR2D gridScreenSize( gridSize );
|
||||
|
|
Loading…
Reference in New Issue