diff options
author | Brian Paul <[email protected]> | 2008-07-10 14:23:27 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-10 14:23:27 -0600 |
commit | bae90edfdae0eac6c844ede21285453ef96a4f6e (patch) | |
tree | 70bc7159748ab1d1c42277664ac466a0cd2e3354 /src/mesa/state_tracker/st_cb_program.c | |
parent | f5cdc657b244ec7840cff1f36892f105b4aa2ef2 (diff) |
gallium: check for FEATURE_feedback and FEATURE_drawpix when creating/using the aux draw module
Diffstat (limited to 'src/mesa/state_tracker/st_cb_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c index 11ba5d56f30..ea0fa20012e 100644 --- a/src/mesa/state_tracker/st_cb_program.c +++ b/src/mesa/state_tracker/st_cb_program.c @@ -144,9 +144,11 @@ st_delete_program(GLcontext *ctx, struct gl_program *prog) } if (stvp->draw_shader) { +#if FEATURE_feedback || FEATURE_drawpix /* this would only have been allocated for the RasterPos path */ draw_delete_vertex_shader(st->draw, stvp->draw_shader); stvp->draw_shader = NULL; +#endif } if (stvp->state.tokens) { @@ -232,9 +234,11 @@ static void st_program_string_notify( GLcontext *ctx, } if (stvp->draw_shader) { +#if FEATURE_feedback || FEATURE_drawpix /* this would only have been allocated for the RasterPos path */ draw_delete_vertex_shader(st->draw, stvp->draw_shader); stvp->draw_shader = NULL; +#endif } if (stvp->state.tokens) { |