nouveau : opps I introduce a bug when cleaning vertex pos attribute swap patch
authorMatthieu Castet <castet.matthieu@free.fr>
Sun, 16 Sep 2007 16:57:03 +0000 (18:57 +0200)
committerMatthieu Castet <castet.matthieu@free.fr>
Sun, 16 Sep 2007 16:57:03 +0000 (18:57 +0200)
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index 22144b6611773953d2e6a55651c6ce16d126247d..545600af6475a2938db57e046863d58057b732b3 100644 (file)
@@ -75,8 +75,8 @@ static const int default_attr_size[8]={3,3,3,4,3,1,4,4};
 
 #define OUT_RING_VERT_RAW(ptr,vertex_size) do{                                         \
        /* if the vertex size is not null, we have at least pos attribute */ \
-       OUT_RINGp((ptr) + default_attr_size[_TNL_ATTRIB_POS], (vertex_size) - default_attr_size[_TNL_ATTRIB_POS]); \
-       OUT_RINGp((ptr), default_attr_size[_TNL_ATTRIB_POS]); \
+       OUT_RINGp((uint32_t *)(ptr) + default_attr_size[_TNL_ATTRIB_POS], (vertex_size) - default_attr_size[_TNL_ATTRIB_POS]); \
+       OUT_RINGp((uint32_t *)(ptr), default_attr_size[_TNL_ATTRIB_POS]); \
 }while(0)
 
 #define OUT_RING_VERT(nmesa,ptr,vertex_size) do{ \