diff options
author | Roland Scheidegger <[email protected]> | 2009-12-24 00:55:49 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-12-24 00:55:49 +0100 |
commit | 1278507e3bf2e83c7027820a0d313de267a440ff (patch) | |
tree | 8ef332af09c8d644a56b6d3456d495e23c3dc047 /src/gallium/drivers/llvmpipe/lp_context.c | |
parent | f44b0ff84338c2184ef4f2cbb752bf62f4fff1fc (diff) |
gallium: adapt drivers to pipe_constant_buffer removal
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_context.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 001311e7031..f381156d00f 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -124,8 +124,8 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) } for (i = 0; i < Elements(llvmpipe->constants); i++) { - if (llvmpipe->constants[i].buffer) { - pipe_buffer_reference(&llvmpipe->constants[i].buffer, NULL); + if (llvmpipe->constants[i]) { + pipe_buffer_reference(&llvmpipe->constants[i], NULL); } } |