summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-29 18:41:19 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-29 18:41:19 +0000
commitdb79d2abacfc946e80ae3ca6a27953925ccf50b9 (patch)
tree6b3af74e7ca8f3490b2d8150c4ea20139836f634 /src
parentc19de0b7f619e0e3677fc9b19bd63a4809e8b715 (diff)
minor clean-up
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/buffers.c5
-rw-r--r--src/mesa/main/buffers.h6
-rw-r--r--src/mesa/main/context.c6
3 files changed, 8 insertions, 9 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index 25f1236f23..0d5d838ca0 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -675,8 +675,9 @@ _mesa_SampleCoverageARB(GLclampf value, GLboolean invert)
* change flushes the vertices and notifies the driver via
* the dd_function_table::Scissor callback.
*/
-void _mesa_set_scissor( GLcontext *ctx,
- GLint x, GLint y, GLsizei width, GLsizei height )
+void
+_mesa_set_scissor(GLcontext *ctx,
+ GLint x, GLint y, GLsizei width, GLsizei height)
{
if (x == ctx->Scissor.X &&
y == ctx->Scissor.Y &&
diff --git a/src/mesa/main/buffers.h b/src/mesa/main/buffers.h
index 547fb28886..77e9f81560 100644
--- a/src/mesa/main/buffers.h
+++ b/src/mesa/main/buffers.h
@@ -74,8 +74,8 @@ _mesa_init_scissor(GLcontext *ctx);
extern void
_mesa_init_multisample(GLcontext *ctx);
-extern void _mesa_set_scissor( GLcontext *ctx,
- GLint x, GLint y, GLsizei width, GLsizei height );
-
+extern void
+_mesa_set_scissor(GLcontext *ctx,
+ GLint x, GLint y, GLsizei width, GLsizei height);
#endif
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index bbefc32804..92dcdfd4ff 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1640,10 +1640,8 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer,
/* set initial viewport and scissor size now */
_mesa_set_viewport(newCtx, 0, 0,
drawBuffer->Width, drawBuffer->Height);
-
- _mesa_set_scissor(newCtx, 0, 0,
- drawBuffer->Width,
- drawBuffer->Height );
+ _mesa_set_scissor(newCtx, 0, 0,
+ drawBuffer->Width, drawBuffer->Height );
}
}