projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdfa4c8
)
mesa: move _mesa_debug() call earlier in _mesa_Scissor
author
Brian Paul
<brianp@vmware.com>
Mon, 25 Jan 2010 00:54:44 +0000
(17:54 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 25 Jan 2010 00:54:47 +0000
(17:54 -0700)
Part of a patch from Xavier Chantry <chantry.xavier@gmail.com>
src/mesa/main/scissor.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/scissor.c
b/src/mesa/main/scissor.c
index b5f4cde7898734be5874f273cd5fcda683bf2dda..523f3c3ab833a6e5aa026f4cc1dd05327e616776 100644
(file)
--- 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);
}