diff options
Diffstat (limited to 'src/mesa/state_tracker/st_cb_drawtex.h')
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawtex.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawtex.h b/src/mesa/state_tracker/st_cb_drawtex.h index 7b0da70279..a3f54a349c 100644 --- a/src/mesa/state_tracker/st_cb_drawtex.h +++ b/src/mesa/state_tracker/st_cb_drawtex.h @@ -9,10 +9,29 @@ #ifndef ST_CB_DRAWTEX_H #define ST_CB_DRAWTEX_H + +#include "main/mtypes.h" + +#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); +#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 */ |