diff options
Diffstat (limited to 'src/mesa/state_tracker/st_cb_drawtex.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawtex.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawtex.c b/src/mesa/state_tracker/st_cb_drawtex.c index 11c431ccb6c..18cebbc88e4 100644 --- a/src/mesa/state_tracker/st_cb_drawtex.c +++ b/src/mesa/state_tracker/st_cb_drawtex.c @@ -34,6 +34,9 @@ #include "cso_cache/cso_context.h" +#if FEATURE_OES_draw_texture + + struct cached_shader { void *handle; @@ -53,9 +56,6 @@ static struct cached_shader CachedShaders[MAX_SHADERS]; static GLuint NumCachedShaders = 0; -#if FEATURE_OES_draw_texture - - static void * lookup_shader(struct pipe_context *pipe, uint num_attribs, @@ -281,13 +281,10 @@ st_DrawTex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, } -#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; } @@ -303,3 +300,6 @@ st_destroy_drawtex(struct st_context *st) } NumCachedShaders = 0; } + + +#endif /* FEATURE_OES_draw_texture */ |