summaryrefslogtreecommitdiff
path: root/src/mesa/main/lines.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-02-08 19:19:34 -0700
committerBrian Paul <brianp@vmware.com>2011-02-08 19:20:43 -0700
commit2634e92dc0cecc364984bef9169a91bb96bafdcd (patch)
tree8cdde7fb281f1233a2b88bb7075f322faa374054 /src/mesa/main/lines.c
parent7230e1a22822ce91f2d2555da53404f195fa9aaf (diff)
mesa: add/update VERBOSE_API logging
Diffstat (limited to 'src/mesa/main/lines.c')
-rw-r--r--src/mesa/main/lines.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c
index 81e179a925..79bf5679d8 100644
--- a/src/mesa/main/lines.c
+++ b/src/mesa/main/lines.c
@@ -43,6 +43,9 @@ _mesa_LineWidth( GLfloat width )
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
+ if (MESA_VERBOSE & VERBOSE_API)
+ _mesa_debug(ctx, "glLineWidth %f\n", width);
+
if (width<=0.0) {
_mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" );
return;
@@ -77,6 +80,9 @@ _mesa_LineStipple( GLint factor, GLushort pattern )
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
+ if (MESA_VERBOSE & VERBOSE_API)
+ _mesa_debug(ctx, "glLineStipple %d %u\n", factor, pattern);
+
factor = CLAMP( factor, 1, 256 );
if (ctx->Line.StippleFactor == factor &&