Skip to content

Commit 5655be9

Browse files
committed
Fix a typo
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 48849c3 commit 5655be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dgl/src/OpenGL3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void Line<T>::draw(const GraphicsContext& context, const T width)
119119

120120
const OpenGL3GraphicsContext& gl3context = static_cast<const OpenGL3GraphicsContext&>(context);
121121

122-
if (gl3context.program == -1)
122+
if (gl3context.program == 0)
123123
return;
124124

125125
const GLfloat x1 = (static_cast<double>(posStart.x) / gl3context.width) * 2 - 1;

0 commit comments

Comments
 (0)