OSDN Git Service

swrast: make rowStride variable signed in put_z32_values()
authorBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 20:29:05 +0000 (13:29 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 21:12:38 +0000 (14:12 -0700)
As with commit aed5c8299fe47b8e1728f8140d069bc89d3fa947

src/mesa/swrast/s_depth.c

index 1336407..c903882 100644 (file)
@@ -253,7 +253,7 @@ put_z32_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
    GLuint i;
 
    if (rb->Format == MESA_FORMAT_Z32) {
-      const GLuint rowStride = srb->RowStride;
+      const GLint rowStride = srb->RowStride;
       for (i = 0; i < count; i++) {
          if (mask[i] && x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
             GLuint *dst = (GLuint *) (map + y[i] * rowStride + x[i] * 4);