Browse Source

Fix a typo

Signed-off-by: falkTX <falktx@falktx.com>
pull/506/head
falkTX 2 months ago
parent
commit
5655be993a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dgl/src/OpenGL3.cpp

+ 1
- 1
dgl/src/OpenGL3.cpp View File

@@ -119,7 +119,7 @@ void Line<T>::draw(const GraphicsContext& context, const T width)

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

if (gl3context.program == -1)
if (gl3context.program == 0)
return;

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


Loading…
Cancel
Save