[Cogl] [PATCH] matrix-stack: move pointer to top of CoglMatrixEntry
Robert Bragg
robert at sixbynine.org
Wed Nov 28 12:49:12 PST 2012
From: Robert Bragg <robert at linux.intel.com>
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.
---
cogl/cogl-matrix-stack.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cogl/cogl-matrix-stack.h b/cogl/cogl-matrix-stack.h
index 8b942e3..dcc3868 100644
--- a/cogl/cogl-matrix-stack.h
+++ b/cogl/cogl-matrix-stack.h
@@ -51,8 +51,8 @@ typedef struct _CoglMatrixEntry CoglMatrixEntry;
struct _CoglMatrixEntry
{
- CoglMatrixOp op;
CoglMatrixEntry *parent;
+ CoglMatrixOp op;
unsigned int ref_count;
/* used for performance tracing */
--
1.7.7.6
More information about the Cogl
mailing list