From: Maciej Cencora Date: Sat, 4 Jul 2009 09:33:47 +0000 (+0200) Subject: r300: fix regression introduced by ca13937ef97c7779f639dcfc95b3798a11de01bd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=186d187ff7eebad58a18721878c5b23799e3f3d6;p=mesa.git r300: fix regression introduced by ca13937ef97c7779f639dcfc95b3798a11de01bd Stride == 0 means that we value for first vertex should be copied to every other vertices (e.g. constant color). This fixes glean/vertProg1 and sauerbraten with enabled shaders. --- diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c index fe8014b3588..4e8b62f1865 100644 --- a/src/mesa/drivers/dri/r300/r300_draw.c +++ b/src/mesa/drivers/dri/r300/r300_draw.c @@ -234,7 +234,7 @@ static void r300TranslateAttrib(GLcontext *ctx, GLuint attr, int count, const st type = input->Type; r300_attr.free_needed = GL_FALSE; r300_attr.data = (GLvoid *)src_ptr; - r300_attr.stride = stride; + r300_attr.stride = input->StrideB; r300_attr.dwords = (getTypeSize(type) * input->Size + 3)/ 4; }