summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_sampler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_sampler.c b/src/gallium/drivers/svga/svga_pipe_sampler.c
index e9d1d6f4527..4c38092078c 100644
--- a/src/gallium/drivers/svga/svga_pipe_sampler.c
+++ b/src/gallium/drivers/svga/svga_pipe_sampler.c
@@ -492,7 +492,7 @@ svga_set_sampler_views(struct pipe_context *pipe,
if (util_format_is_srgb(views[i]->format))
flag_srgb |= 1 << (start + i);
- target = views[i]->texture->target;
+ target = views[i]->target;
if (target == PIPE_TEXTURE_1D)
flag_1d |= 1 << (start + i);
else if (target == PIPE_TEXTURE_RECT)