summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/feedback.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/feedback.h')
-rw-r--r--src/mesa/main/feedback.h17
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 );