summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_drawpixels.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-03-31 11:54:20 +0800
committerChia-I Wu <olv@lunarg.com>2010-05-12 12:12:57 +0800
commit14a92b26ff76550c5010ddf8bcbf5226dae5183f (patch)
tree9035b54e3f7f5f6f4ff5713e44e2bc805b28dd46 /src/mesa/state_tracker/st_cb_drawpixels.h
parente33ad4999e5f8a690a72ad6ce4e6d36328173430 (diff)
st/mesa: Make st_cb_{bitmap,drawpixels}.h FEATURE_drawpix aware.
This change allows st_cb_{bitmap,drawpixels}.h to be used without knowing if FEATURE_drawpix is enabled.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_drawpixels.h')
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.h b/src/mesa/state_tracker/st_cb_drawpixels.h
index 26fe864d18..7d5e901ccc 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.h
+++ b/src/mesa/state_tracker/st_cb_drawpixels.h
@@ -30,10 +30,27 @@
#define ST_CB_DRAWPIXELS_H
+#include "main/mtypes.h"
+
+#if FEATURE_drawpix
+
extern void st_init_drawpixels_functions(struct dd_function_table *functions);
extern void
st_destroy_drawpix(struct st_context *st);
+#else
+
+static INLINE void
+st_init_drawpixels_functions(struct dd_function_table *functions)
+{
+}
+
+static INLINE void
+st_destroy_drawpix(struct st_context *st)
+{
+}
+
+#endif /* FEATURE_drawpix */
#endif /* ST_CB_DRAWPIXELS_H */