diff options
author | Brian Paul <[email protected]> | 2009-02-27 22:18:33 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-28 09:35:15 -0700 |
commit | bf8a187f71bd667a0dc0f70164a897d8e62361a8 (patch) | |
tree | a9304fc17c41a27b53a8df6bc4708355c75f0dda /src/mesa/main/feedback.h | |
parent | 559aec47015b741e045d57362f7732b3a04f9450 (diff) |
mesa: replace FEEDBACK_TOKEN macro with _mesa_feedback_token() inline function
Diffstat (limited to 'src/mesa/main/feedback.h')
-rw-r--r-- | src/mesa/main/feedback.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mesa/main/feedback.h b/src/mesa/main/feedback.h index c6478b02e10..72c2acd5edd 100644 --- a/src/mesa/main/feedback.h +++ b/src/mesa/main/feedback.h @@ -30,13 +30,6 @@ #include "mtypes.h" -#define FEEDBACK_TOKEN( CTX, T ) \ - if (CTX->Feedback.Count < CTX->Feedback.BufferSize) { \ - CTX->Feedback.Buffer[CTX->Feedback.Count] = (GLfloat) (T); \ - } \ - CTX->Feedback.Count++; - - extern void _mesa_init_feedback( GLcontext *ctx ); @@ -48,6 +41,16 @@ _mesa_feedback_vertex( GLcontext *ctx, const GLfloat texcoord[4] ); +static INLINE void +_mesa_feedback_token( GLcontext *ctx, GLfloat token ) +{ + if (ctx->Feedback.Count < ctx->Feedback.BufferSize) { + ctx->Feedback.Buffer[ctx->Feedback.Count] = token; + } + ctx->Feedback.Count++; +} + + extern void _mesa_update_hitflag( GLcontext *ctx, GLfloat z ); |