projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95df7bf
)
r300: fix regression introduced by ca13937ef97c7779f639dcfc95b3798a11de01bd
author
Maciej Cencora
<m.cencora@gmail.com>
Sat, 4 Jul 2009 09:33:47 +0000
(11:33 +0200)
committer
Maciej Cencora
<m.cencora@gmail.com>
Wed, 8 Jul 2009 16:42:39 +0000
(18:42 +0200)
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.
src/mesa/drivers/dri/r300/r300_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_draw.c
b/src/mesa/drivers/dri/r300/r300_draw.c
index fe8014b35883b776a1c99e32246c83df59f4a730..4e8b62f1865c2bbed8da3c663cf12ade02e6bb9a 100644
(file)
--- 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;
}