aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_depth.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-24 13:29:05 -0700
committerBrian Paul <[email protected]>2012-01-24 14:12:38 -0700
commitcf386f0a2ba3efcfd6ddbfcbebaf98a9bfa7a29f (patch)
tree5e7582afb499b841f32cc151edc518608bee6330 /src/mesa/swrast/s_depth.c
parent89bb19adb08caaefc01e613e9bbfbdd1f366ddab (diff)
swrast: make rowStride variable signed in put_z32_values()
As with commit aed5c8299fe47b8e1728f8140d069bc89d3fa947
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 1336407c4b7..c9038820964 100644
--- a/src/mesa/swrast/s_depth.c
+++ b/src/mesa/swrast/s_depth.c
@@ -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);