matrix-stack: move pointer to top of CoglMatrixEntry

This moves the parent pointer member to the top of the CoglMatrixEntry
structure since it will lead to wasted padding when we build for 64bit
cpus.

(cherry picked from commit 42b4750070286a6404b103d8a827a46efb6b344c)
This commit is contained in:
Robert Bragg 2012-11-27 19:55:34 +00:00
parent 9eb816bc7e
commit f5b95e8087

View File

@ -51,8 +51,8 @@ typedef struct _CoglMatrixEntry CoglMatrixEntry;
struct _CoglMatrixEntry struct _CoglMatrixEntry
{ {
CoglMatrixOp op;
CoglMatrixEntry *parent; CoglMatrixEntry *parent;
CoglMatrixOp op;
unsigned int ref_count; unsigned int ref_count;
/* used for performance tracing */ /* used for performance tracing */