diff options
author | Brian Paul <[email protected]> | 2012-08-04 08:46:42 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-06 08:33:17 -0600 |
commit | b3538d356316b282d6408f710f2df5f06bf315f5 (patch) | |
tree | d75e24c0b2570799fb997ffa15aae5aa0c59215a /src/gallium/drivers/llvmpipe/lp_context.c | |
parent | 1f34e1a6cbac4b96d07a3d6d01bc443d5282add4 (diff) |
llvmpipe: combine vertex/fragment sampler state into an array
This will allow code consolidation in the next patch.
Reviewed-by: José Fonseca <[email protected]>
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 07cea9158c3..7d0ca1f8cd8 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -70,11 +70,11 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) pipe_surface_reference(&llvmpipe->framebuffer.zsbuf, NULL); for (i = 0; i < PIPE_MAX_SAMPLERS; i++) { - pipe_sampler_view_reference(&llvmpipe->fragment_sampler_views[i], NULL); + pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_FRAGMENT][i], NULL); } for (i = 0; i < PIPE_MAX_VERTEX_SAMPLERS; i++) { - pipe_sampler_view_reference(&llvmpipe->vertex_sampler_views[i], NULL); + pipe_sampler_view_reference(&llvmpipe->sampler_views[PIPE_SHADER_VERTEX][i], NULL); } for (i = 0; i < Elements(llvmpipe->constants); i++) { |