projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: Include missing header in st_get_mipmap.h.
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_cb_drawtex.h
diff --git
a/src/mesa/state_tracker/st_cb_drawtex.h
b/src/mesa/state_tracker/st_cb_drawtex.h
index 7b0da7027984ad1c79133e4866eaedc9f6730d19..d21262f89770871dcb264f66051c246569b26ce4 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_drawtex.h
+++ b/
src/mesa/state_tracker/st_cb_drawtex.h
@@
-9,10
+9,32
@@
#ifndef ST_CB_DRAWTEX_H
#define ST_CB_DRAWTEX_H
#ifndef ST_CB_DRAWTEX_H
#define ST_CB_DRAWTEX_H
+
+#include "main/compiler.h"
+
+struct dd_function_table;
+struct st_context;
+
+#if FEATURE_OES_draw_texture
+
extern void
st_init_drawtex_functions(struct dd_function_table *functions);
extern void
st_destroy_drawtex(struct st_context *st);
extern void
st_init_drawtex_functions(struct dd_function_table *functions);
extern void
st_destroy_drawtex(struct st_context *st);
+#else
+
+static INLINE void
+st_init_drawtex_functions(struct dd_function_table *functions)
+{
+}
+
+static INLINE void
+st_destroy_drawtex(struct st_context *st)
+{
+}
+
+#endif /* FEATURE_OES_draw_texture */
+
#endif /* ST_CB_DRAWTEX_H */
#endif /* ST_CB_DRAWTEX_H */