From: Alan Hourihane Date: Tue, 3 Feb 2009 20:07:42 +0000 (+0000) Subject: mesa: fix offset problem with interleaved arrays X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a47965588fdaa75166c48d50974b38fcbfd2a749;p=mesa.git mesa: fix offset problem with interleaved arrays --- diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 630ad2bcdf9..942f913ea21 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -379,7 +379,7 @@ setup_interleaved_attribs(GLcontext *ctx, else { vbuffer->buffer = NULL; pipe_buffer_reference(pipe->screen, &vbuffer->buffer, stobj->buffer); - vbuffer->buffer_offset = (unsigned) arrays[mesaAttr]->Ptr; + vbuffer->buffer_offset = (unsigned) low; } vbuffer->stride = stride; /* in bytes */ vbuffer->max_index = max_index;