Simplify swapVertex

This commit is contained in:
Luke Benstead 2019-11-30 10:07:23 +00:00
parent e61369674c
commit 62b53f0fb1

View File

@ -189,14 +189,9 @@ do { \
#define swapVertex(a, b) \ #define swapVertex(a, b) \
do { \ do { \
_SWAP32(a->flags, b->flags); \ Vertex c = *a; \
_SWAP32(a->xyz[0], b->xyz[0]); \ *a = *b; \
_SWAP32(a->xyz[1], b->xyz[1]); \ *b = c; \
_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); \
} while(0) } while(0)
/* ClipVertex doesn't have room for these, so we need to parse them /* ClipVertex doesn't have room for these, so we need to parse them