diff options
author | Paul Berry <[email protected]> | 2012-12-17 13:48:21 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-01-08 09:08:57 -0800 |
commit | 8706395f25228d0e622cc56346c7181ba102edf4 (patch) | |
tree | a864b8b39c8c691943762cef3b587e7c47ed1e63 /src/mesa/main/extensions.c | |
parent | 09df6bb96d5d7b987de6cd48d87d175e5cd2ccf3 (diff) |
mesa: Add ALIGN() macro to main/macros.h.
Previously this macro existed in 3 separate places, some inside the
intel driver and some outside of it. It makes more sense to have it
in main/macros.h
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r-- | src/mesa/main/extensions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 98711b395aa..3486b65a4d3 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -34,11 +34,10 @@ #include "imports.h" #include "context.h" #include "extensions.h" +#include "macros.h" #include "mfeatures.h" #include "mtypes.h" -#define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1)) - enum { DISABLE = 0, GLL = 1 << API_OPENGL_COMPAT, /* GL Legacy / Compatibility */ |