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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user