summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_rasterpos.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-24 16:05:33 -0700
committerBrian <[email protected]>2008-01-24 16:05:33 -0700
commitc753e7adde9a7a2c8ff772fe8e2a42084c5966e0 (patch)
tree8145037f11aa4d831a8fe7f0d32167dc714aded3 /src/mesa/state_tracker/st_cb_rasterpos.c
parent6c29be9f41470b22c87ef571e10b5a9824800608 (diff)
gallium: added rastpos_destroy()
Diffstat (limited to 'src/mesa/state_tracker/st_cb_rasterpos.c')
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index f1c2d2d7c37..dc6456c7757 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -104,6 +104,12 @@ rastpos_line( struct draw_stage *stage, struct prim_header *prim )
assert(0);
}
+static void
+rastpos_destroy(struct draw_stage *stage)
+{
+ free(stage);
+}
+
/**
* Update a raster pos attribute from the vertex result if it's present,
@@ -183,6 +189,7 @@ new_draw_rastpos_stage(GLcontext *ctx, struct draw_context *draw)
rs->stage.tri = rastpos_tri;
rs->stage.end = rastpos_end;
rs->stage.reset_stipple_counter = rastpos_reset_stipple_counter;
+ rs->stage.destroy = rastpos_destroy;
rs->ctx = ctx;
for (i = 0; i < VERT_ATTRIB_MAX; i++) {