Module: Mesa
Branch: master
Commit: 186d187ff7eebad58a18721878c5b23799e3f3d6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=186d187ff7eebad58a18721878c5b23799e3f3d6

Author: Maciej Cencora <[email protected]>
Date:   Sat Jul  4 11:33:47 2009 +0200

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.

---

 src/mesa/drivers/dri/r300/r300_draw.c |    2 +-
 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 fe8014b..4e8b62f 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;
        }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to