diff options
-rw-r--r-- | src/mesa/main/lines.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c index 0df9d66b056..3c08ed2e713 100644 --- a/src/mesa/main/lines.c +++ b/src/mesa/main/lines.c @@ -62,7 +62,8 @@ _mesa_LineWidth( GLfloat width ) */ if (ctx->API == API_OPENGL_CORE && ((ctx->Const.ContextFlags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT) - != 0)) { + != 0) + && width > 1.0) { _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" ); return; } |