Make VERT coord field aligned to 16 bytes.
This commit is contained in:
parent
79cd1fc354
commit
589960f91b
|
@ -521,12 +521,13 @@ struct POLYLIST {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct VERT {
|
struct VERT {
|
||||||
|
// Align to 16 for SSE instructions to work
|
||||||
union {
|
union {
|
||||||
float coord[4];
|
float coord[4];
|
||||||
struct {
|
struct {
|
||||||
float x,y,z,w;
|
float x,y,z,w;
|
||||||
};
|
};
|
||||||
};
|
} DS_ALIGN(16);
|
||||||
union {
|
union {
|
||||||
float texcoord[2];
|
float texcoord[2];
|
||||||
struct {
|
struct {
|
||||||
|
|
Loading…
Reference in New Issue