Enable GL_LINE_STIPPLE only for the block where a stipple pattern is used

Fixes stipple handling for "GL Renderer: Intel(R) HD Graphics / OpenGL Version: 4.0.0 - Build 10.18.10.3496" (#1111).