diff options
Diffstat (limited to 'src/mesa/tnl/t_save_api.c')
-rw-r--r-- | src/mesa/tnl/t_save_api.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index 684263660a7..28bd376fc08 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -371,8 +371,7 @@ static void _save_copy_to_current( GLcontext *ctx ) for (i = _TNL_ATTRIB_POS+1 ; i <= _TNL_ATTRIB_INDEX ; i++) { if (tnl->save.attrsz[i]) { tnl->save.currentsz[i][0] = tnl->save.attrsz[i]; - ASSIGN_4V(tnl->save.current[i], 0, 0, 0, 1); - COPY_SZ_4V(tnl->save.current[i], + COPY_CLEAN_4V(tnl->save.current[i], tnl->save.attrsz[i], tnl->save.attrptr[i]); } @@ -502,8 +501,7 @@ static void _save_upgrade_vertex( GLcontext *ctx, if (tnl->save.attrsz[j]) { if (j == attr) { if (oldsz) { - ASSIGN_4V( dest, 0, 0, 0, 1 ); - COPY_SZ_4V( dest, oldsz, data ); + COPY_CLEAN_4V( dest, oldsz, data ); data += oldsz; dest += newsz; } |