diff options
author | Brian Paul <[email protected]> | 2008-04-22 18:38:37 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-04-22 18:43:05 -0600 |
commit | 33f3938d2d6340b31d758c96bd35f858c6c8267d (patch) | |
tree | ee9211f0d5733d33134936092b304ed86db758ea /src/mesa/state_tracker/st_cb_program.c | |
parent | 1977fbff6010af0a5bd0bba7c0367b7713185a92 (diff) |
gallium: fix some bitmap frag shader issues
If texturing happens to be enabled when glBitmap() is called, need to be
careful about choosing a sampler unit, etc.
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 003ec0d2b79..67f8b1f8ebb 100644 --- a/src/mesa/state_tracker/st_cb_program.c +++ b/src/mesa/state_tracker/st_cb_program.c @@ -159,6 +159,10 @@ st_delete_program(GLcontext *ctx, struct gl_program *prog) stfp->state.tokens = NULL; } + if (stfp->bitmap_program) { + st_delete_program(ctx, &stfp->bitmap_program->Base.Base); + } + st_free_translated_vertex_programs(st, stfp->vertex_programs); } break; |