aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-04-10 18:43:19 +0000
committermarha <marha@users.sourceforge.net>2011-04-10 18:43:19 +0000
commit2fb58f16eeec8ef3ec2a25e246477aab64e38a7d (patch)
treea4dbbe4f2c9a6524e99452ab43c972d5dbfa015f /mesalib/src/mesa/state_tracker/st_context.c
parentde1c6801fc854692d39fb2f8d53bf54ab25a1287 (diff)
downloadvcxsrv-2fb58f16eeec8ef3ec2a25e246477aab64e38a7d.tar.gz
vcxsrv-2fb58f16eeec8ef3ec2a25e246477aab64e38a7d.tar.bz2
vcxsrv-2fb58f16eeec8ef3ec2a25e246477aab64e38a7d.zip
mesa git update
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_context.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_context.c b/mesalib/src/mesa/state_tracker/st_context.c
index afd85f0de..458968486 100644
--- a/mesalib/src/mesa/state_tracker/st_context.c
+++ b/mesalib/src/mesa/state_tracker/st_context.c
@@ -206,8 +206,8 @@ static void st_destroy_context_priv( struct st_context *st )
st_destroy_drawtex(st);
/* Unreference any user vertex buffers. */
- for (i = 0; i < st->num_user_vbs; i++) {
- pipe_resource_reference(&st->user_vb[i], NULL);
+ for (i = 0; i < st->num_user_attribs; i++) {
+ pipe_resource_reference(&st->user_attrib[i].buffer, NULL);
}
for (i = 0; i < Elements(st->state.sampler_views); i++) {