diff options
| author | Stéphane Marchesin <marcheu@chromium.org> | 2011-06-28 20:45:07 -0700 |
|---|---|---|
| committer | Stéphane Marchesin <marcheu@chromium.org> | 2011-06-29 16:54:28 -0700 |
| commit | 5349b95920c82ab9187fe965f3921bd564fe6524 (patch) | |
| tree | 8439d688efd4e5153ff1b36537d4835685eb12a1 /src/gallium/auxiliary/draw/draw_pipe_aaline.c | |
| parent | 578f6a9534ec6ea1ffc6638b98f0b5570a85a19d (diff) | |
| download | external_mesa3d-5349b95920c82ab9187fe965f3921bd564fe6524.tar.gz external_mesa3d-5349b95920c82ab9187fe965f3921bd564fe6524.tar.bz2 external_mesa3d-5349b95920c82ab9187fe965f3921bd564fe6524.zip | |
Gallium:draw:aaline and aapoint: Restore the old hooks when we destroy our stage.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_aaline.c')
| -rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_aaline.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_aaline.c b/src/gallium/auxiliary/draw/draw_pipe_aaline.c index 32af29ae14..458f85def2 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_aaline.c +++ b/src/gallium/auxiliary/draw/draw_pipe_aaline.c @@ -784,6 +784,14 @@ aaline_destroy(struct draw_stage *stage) draw_free_temp_verts( stage ); + /* restore the old entry points */ + pipe->create_fs_state = aaline->driver_create_fs_state; + pipe->bind_fs_state = aaline->driver_bind_fs_state; + pipe->delete_fs_state = aaline->driver_delete_fs_state; + + pipe->bind_fragment_sampler_states = aaline->driver_bind_sampler_states; + pipe->set_fragment_sampler_views = aaline->driver_set_sampler_views; + FREE( stage ); } |
