diff options
author | Brian Paul <[email protected]> | 2010-01-24 17:54:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-24 17:54:47 -0700 |
commit | e88d6fe299cb43eedfae7f0fa3bb14c8086a8cd4 (patch) | |
tree | 8c302383883acc0d241136ea532fcf766081312c /src/mesa | |
parent | fdfa4c85297d5d25e7256bf73e35309b358af86c (diff) |
mesa: move _mesa_debug() call earlier in _mesa_Scissor
Part of a patch from Xavier Chantry <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/scissor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c index b5f4cde7898..523f3c3ab83 100644 --- a/src/mesa/main/scissor.c +++ b/src/mesa/main/scissor.c @@ -37,14 +37,14 @@ _mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height ) GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END(ctx); + if (MESA_VERBOSE & VERBOSE_API) + _mesa_debug(ctx, "glScissor %d %d %d %d\n", x, y, width, height); + if (width < 0 || height < 0) { _mesa_error( ctx, GL_INVALID_VALUE, "glScissor" ); return; } - if (MESA_VERBOSE & VERBOSE_API) - _mesa_debug(ctx, "glScissor %d %d %d %d\n", x, y, width, height); - _mesa_set_scissor(ctx, x, y, width, height); } |