diff --git a/GL/private.h b/GL/private.h index d079269..be91c29 100644 --- a/GL/private.h +++ b/GL/private.h @@ -189,14 +189,9 @@ do { \ #define swapVertex(a, b) \ do { \ - _SWAP32(a->flags, b->flags); \ - _SWAP32(a->xyz[0], b->xyz[0]); \ - _SWAP32(a->xyz[1], b->xyz[1]); \ - _SWAP32(a->xyz[2], b->xyz[2]); \ - _SWAP32(a->uv[0], b->uv[0]); \ - _SWAP32(a->uv[1], b->uv[1]); \ - _SWAP32(a->bgra, b->bgra); \ - _SWAP32(a->w, b->w); \ + Vertex c = *a; \ + *a = *b; \ + *b = c; \ } while(0) /* ClipVertex doesn't have room for these, so we need to parse them