diff options
author | Brian Paul <[email protected]> | 2009-02-12 10:14:36 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-12 10:14:36 -0700 |
commit | f1a59a6dd7b7b0523db191d82b3af1a841c6475d (patch) | |
tree | 847aceec1a61e00d19bd7ac24f2eb0fc4a1e6c2a /src/mesa/state_tracker/st_context.h | |
parent | 1a2f4dd8768703fbc1b2a0d5be342345644805b4 (diff) |
mesa: use new ST_CALLOC_STRUCT() macro in gallium state tracker
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 695ac4a96f4..3547925ad7f 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -242,6 +242,10 @@ st_fb_orientation(const struct gl_framebuffer *fb) } +/** clear-alloc a struct-sized object, with casting */ +#define ST_CALLOC_STRUCT(T) (struct T *) _mesa_calloc(sizeof(struct T)) + + extern int st_get_msaa(void); |