summaryrefslogtreecommitdiff
path: root/src/mesa/main/matrix.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-08-21 16:39:39 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-08-21 16:39:39 +0000
commit2188d002df22ac4495444fa7705af1963508f766 (patch)
treef5a4eb04d1540f88c442c9a7d1b0af17fa031e48 /src/mesa/main/matrix.c
parent62166908a947602ba8909059794fb6b9fe6813b9 (diff)
minor error message changes
Diffstat (limited to 'src/mesa/main/matrix.c')
-rw-r--r--src/mesa/main/matrix.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c
index 27e4297d36..1ad72f11b6 100644
--- a/src/mesa/main/matrix.c
+++ b/src/mesa/main/matrix.c
@@ -1,4 +1,4 @@
-/* $Id: matrix.c,v 1.43 2002/06/23 02:52:18 brianp Exp $ */
+/* $Id: matrix.c,v 1.44 2002/08/21 16:39:39 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -407,14 +407,15 @@ _mesa_set_viewport( GLcontext *ctx, GLint x, GLint y,
const GLfloat n = ctx->Viewport.Near;
const GLfloat f = ctx->Viewport.Far;
+ if (MESA_VERBOSE & VERBOSE_API)
+ _mesa_debug(ctx, "glViewport %d %d %d %d\n", x, y, width, height);
+
if (width < 0 || height < 0) {
- _mesa_error( ctx, GL_INVALID_VALUE, "glViewport" );
+ _mesa_error( ctx, GL_INVALID_VALUE,
+ "glViewport(%d, %d, %d, %d)", x, y, width, height );
return;
}
- if (MESA_VERBOSE & VERBOSE_API)
- _mesa_debug(ctx, "glViewport %d %d %d %d\n", x, y, width, height);
-
/* clamp width, and height to implementation dependent range */
width = CLAMP( width, 1, MAX_WIDTH );
height = CLAMP( height, 1, MAX_HEIGHT );