diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 19a66786e30..4f14201aebf 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -732,8 +732,8 @@ intel_create_image_from_fds(__DRIscreen *screen, image->offsets[index] = offsets[index]; image->strides[index] = strides[index]; - const int height = height >> f->planes[i].height_shift; - const int end = offsets[index] + height * strides[index]; + const int plane_height = height >> f->planes[i].height_shift; + const int end = offsets[index] + plane_height * strides[index]; if (size < end) size = end; } |