diff options
author | Brian Paul <[email protected]> | 2005-09-30 03:01:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-30 03:01:11 +0000 |
commit | 82b29819a9ede846ad5c37ff70b71d45cf72357a (patch) | |
tree | b59d24bd34fdc3dc8676d280746ef611fb6f0bbd /src/mesa/swrast/s_depth.c | |
parent | f493a04be0e004bb07f84b2e28124ed8cb6a9b38 (diff) |
minor improvements
Diffstat (limited to 'src/mesa/swrast/s_depth.c')
-rw-r--r-- | src/mesa/swrast/s_depth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c index 4011b037e30..800e7f29fdd 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; |