diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 0118b9125c..c96200cac5 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -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 );