diff options
author | José Fonseca <[email protected]> | 2008-09-03 11:48:05 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-09-03 11:53:39 +0900 |
commit | f637a96e85a51a66f2c53b91118a6815bb61d6e6 (patch) | |
tree | bd56aa4cc21fed53612e8625321a961dea25e60c /src/mesa/state_tracker/st_context.c | |
parent | 82086f5d21295d5ceffb0fd9963de7de4112964b (diff) |
gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.
We want to use the pipe_buffer_* inlines everywhere, but a pipe context
is not always available nor is it needed.
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 83b0be06daa..08d4db7f7f4 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -196,7 +196,7 @@ 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_reference_buffer(st->pipe, &st->state.constants[i].buffer, NULL); + pipe_buffer_reference(st->pipe->screen, &st->state.constants[i].buffer, NULL); } } |