summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-07-04 11:33:47 +0200
committerMaciej Cencora <[email protected]>2009-07-08 18:42:39 +0200
commit186d187ff7eebad58a18721878c5b23799e3f3d6 (patch)
tree168e36786f3c34a225ba3aebbbd22cad82e40794 /src
parent95df7bfc03fc63152b241e65bce1f7c73bbf007b (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/r300_draw.c2
1 files changed, 1 insertions, 1 deletions
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;
}