[Mesa-dev] [PATCH 2/2] Gallium:draw:aaline and aapoint: Don't free the tokens.
Stéphane Marchesin
marcheu at chromium.org
Tue Jun 28 20:50:07 PDT 2011
We didn't allocate them, and the driver will try to free them at the end of the pipeline stage, so leave them alone.
---
src/gallium/auxiliary/draw/draw_pipe_aaline.c | 1 -
src/gallium/auxiliary/draw/draw_pipe_aapoint.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_pipe_aaline.c b/src/gallium/auxiliary/draw/draw_pipe_aaline.c
index 458f85d..83b19ef 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_aaline.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_aaline.c
@@ -385,7 +385,6 @@ generate_aaline_fs(struct aaline_stage *aaline)
goto fail;
aaline->fs->generic_attrib = transform.maxGeneric + 1;
- FREE((void *)aaline_fs.tokens);
return TRUE;
fail:
diff --git a/src/gallium/auxiliary/draw/draw_pipe_aapoint.c b/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
index 9265c37..9e40687 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
@@ -531,7 +531,6 @@ generate_aapoint_fs(struct aapoint_stage *aapoint)
goto fail;
aapoint->fs->generic_attrib = transform.maxGeneric + 1;
- FREE((void *)aapoint_fs.tokens);
return TRUE;
fail:
--
1.7.5.3.367.ga9930
More information about the mesa-dev
mailing list