diff options
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c index 9437fc98788..3d8f43ffb4a 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c @@ -269,7 +269,7 @@ check_update_array(struct nouveau_array *a, unsigned offset, if (a->bo == bo) { if (delta < 0) - delta = (offset - (long)a->offset) / a->stride; + delta = ((int)offset - (int)a->offset) / a->stride; dirty = (delta < 0 || offset != (a->offset + delta * a->stride)); |