summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_depth.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-30 03:01:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-30 03:01:11 +0000
commit82b29819a9ede846ad5c37ff70b71d45cf72357a (patch)
treeb59d24bd34fdc3dc8676d280746ef611fb6f0bbd /src/mesa/swrast/s_depth.c
parentf493a04be0e004bb07f84b2e28124ed8cb6a9b38 (diff)
minor improvements
Diffstat (limited to 'src/mesa/swrast/s_depth.c')
-rw-r--r--src/mesa/swrast/s_depth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c
index 4011b037e3..800e7f29fd 100644
--- a/src/mesa/swrast/s_depth.c
+++ b/src/mesa/swrast/s_depth.c
@@ -1213,7 +1213,7 @@ _swrast_read_depth_span_float( GLcontext *ctx, struct gl_renderbuffer *rb,
ASSERT(rb->_BaseFormat == GL_DEPTH_COMPONENT);
if (y < 0 || y >= (GLint) rb->Height ||
- x + (GLint) n <= 0 || x >= (GLint) rb->Width) {
+ x + n <= 0 || x >= (GLint) rb->Width) {
/* span is completely outside framebuffer */
_mesa_bzero(depth, n * sizeof(GLfloat));
return;