Mesa (gallium-0.1): draw: Fix vertex_header initialisation.

Michał Król michal at kemper.freedesktop.org
Fri Apr 10 07:04:42 UTC 2009


Module: Mesa
Branch: gallium-0.1
Commit: a6786bea5c591eeab419e27efaa7913c945b6b24
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6786bea5c591eeab419e27efaa7913c945b6b24

Author: Michal Krol <michal at vmware.com>
Date:   Fri Apr 10 08:54:47 2009 +0200

draw: Fix vertex_header initialisation.

---

 src/gallium/auxiliary/draw/draw_pt_fetch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c
index 6377f89..e5ebf77 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c
@@ -114,7 +114,7 @@ void draw_pt_fetch_prepare( struct pt_fetch *fetch,
       fetch->translate = translate_cache_find(fetch->cache, &key);
 
       {
-	 static struct vertex_header vh = { 0, 1, 0, 0xffff };
+         static struct vertex_header vh = { 0, 1, 0, UNDEFINED_VERTEX_ID, { .0f, .0f, .0f, .0f } };
 	 fetch->translate->set_buffer(fetch->translate,
 				      draw->pt.nr_vertex_buffers,
 				      &vh,




More information about the mesa-commit mailing list