Mesa (mesa_7_7_branch): mesa: move _mesa_debug() call earlier in _mesa_Scissor
Brian Paul
brianp at kemper.freedesktop.org
Mon Jan 25 01:20:21 UTC 2010
Module: Mesa
Branch: mesa_7_7_branch
Commit: e88d6fe299cb43eedfae7f0fa3bb14c8086a8cd4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e88d6fe299cb43eedfae7f0fa3bb14c8086a8cd4
Author: Brian Paul <brianp at vmware.com>
Date: Sun Jan 24 17:54:44 2010 -0700
mesa: move _mesa_debug() call earlier in _mesa_Scissor
Part of a patch from Xavier Chantry <chantry.xavier at gmail.com>
---
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 b5f4cde..523f3c3 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);
}
More information about the mesa-commit
mailing list