r300: fix regression introduced by ca13937ef9

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.
This commit is contained in:
Maciej Cencora
2009-07-04 11:33:47 +02:00
parent 95df7bfc03
commit 186d187ff7
+1 -1
View File
@@ -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;
}