aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_accum.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-03-31 11:43:49 +0800
committerChia-I Wu <[email protected]>2010-05-12 12:12:57 +0800
commite33ad4999e5f8a690a72ad6ce4e6d36328173430 (patch)
treeada6d72d104c875c4986523bff2bc308d05adb9c /src/mesa/state_tracker/st_cb_accum.h
parentb093016bd0660cc4ac6142aa8d4d6add5b6bfce8 (diff)
st/mesa: Make st_cb_accum.h FEATURE_accum aware.
This change allows st_cb_accum.h to be used without knowing if FEATURE_accum is enabled.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_accum.h')
-rw-r--r--src/mesa/state_tracker/st_cb_accum.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_accum.h b/src/mesa/state_tracker/st_cb_accum.h
index ed9b7dab943..7d52481c82e 100644
--- a/src/mesa/state_tracker/st_cb_accum.h
+++ b/src/mesa/state_tracker/st_cb_accum.h
@@ -30,10 +30,28 @@
#define ST_CB_ACCUM_H
+#include "main/mtypes.h"
+
+#if FEATURE_accum
+
extern void
st_clear_accum_buffer(GLcontext *ctx, struct gl_renderbuffer *rb);
extern void st_init_accum_functions(struct dd_function_table *functions);
+#else
+
+static INLINE void
+st_clear_accum_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
+{
+ ASSERT_NO_FEATURE();
+}
+
+static INLINE void
+st_init_accum_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_accum */
#endif /* ST_CB_ACCUM_H */