summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2009-12-23 20:44:06 +0100
committerRoland Scheidegger <[email protected]>2009-12-23 20:44:06 +0100
commitf44b0ff84338c2184ef4f2cbb752bf62f4fff1fc (patch)
treef87fc088544f9d746b4784efd06aa162ece4fa61 /src/mesa/state_tracker/st_context.c
parentbeb712ee9adf693f02e5d867344817176189d385 (diff)
gallium: adapt state trackers etc. to pipe_constant_buffer removal
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index d18a25ab514..893fa8f7ddf 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -217,8 +217,8 @@ static void st_destroy_context_priv( struct st_context *st )
}
for (i = 0; i < Elements(st->state.constants); i++) {
- if (st->state.constants[i].buffer) {
- pipe_buffer_reference(&st->state.constants[i].buffer, NULL);
+ if (st->state.constants[i]) {
+ pipe_buffer_reference(&st->state.constants[i], NULL);
}
}