diff --git a/dgl/src/OpenGL3.cpp b/dgl/src/OpenGL3.cpp index 7be4eb98..c2834563 100644 --- a/dgl/src/OpenGL3.cpp +++ b/dgl/src/OpenGL3.cpp @@ -119,7 +119,7 @@ void Line::draw(const GraphicsContext& context, const T width) const OpenGL3GraphicsContext& gl3context = static_cast(context); - if (gl3context.program == -1) + if (gl3context.program == 0) return; const GLfloat x1 = (static_cast(posStart.x) / gl3context.width) * 2 - 1;