#include "cso_cache/cso_context.h"
+#if FEATURE_OES_draw_texture
+
+
struct cached_shader
{
void *handle;
static GLuint NumCachedShaders = 0;
-#if FEATURE_OES_draw_texture
-
-
static void *
lookup_shader(struct pipe_context *pipe,
uint num_attribs,
}
-#endif /* FEATURE_OES_draw_texture */
-
-
void
st_init_drawtex_functions(struct dd_function_table *functions)
{
- _MESA_INIT_DRAWTEX_FUNCTIONS(functions, st_);
+ functions->DrawTex = st_DrawTex;
}
}
NumCachedShaders = 0;
}
+
+
+#endif /* FEATURE_OES_draw_texture */
#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 */
#include "st_cb_condrender.h"
#include "st_cb_drawpixels.h"
#include "st_cb_rasterpos.h"
-#if FEATURE_OES_draw_texture
#include "st_cb_drawtex.h"
-#endif
#include "st_cb_eglimage.h"
#include "st_cb_fbo.h"
#include "st_cb_feedback.h"
st_destroy_clear(st);
st_destroy_bitmap(st);
st_destroy_drawpix(st);
-#if FEATURE_OES_draw_texture
st_destroy_drawtex(st);
-#endif
for (i = 0; i < Elements(st->state.sampler_views); i++) {
pipe_sampler_view_reference(&st->state.sampler_views[i], NULL);
st_init_drawpixels_functions(functions);
st_init_rasterpos_functions(functions);
-#if FEATURE_OES_draw_texture
st_init_drawtex_functions(functions);
-#endif
st_init_eglimage_functions(functions);