diff options
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_tex.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_tex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_tex.c b/src/gallium/drivers/nouveau/nv50/nv50_tex.c index 0d2604e3921..d69c8d6ff0d 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_tex.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_tex.c @@ -58,10 +58,10 @@ nv50_create_sampler_view(struct pipe_context *pipe, { uint32_t flags = 0; - if (res->target == PIPE_TEXTURE_RECT || res->target == PIPE_BUFFER) + if (templ->target == PIPE_TEXTURE_RECT || templ->target == PIPE_BUFFER) flags |= NV50_TEXVIEW_SCALED_COORDS; - return nv50_create_texture_view(pipe, res, templ, flags, res->target); + return nv50_create_texture_view(pipe, res, templ, flags, templ->target); } struct pipe_sampler_view * |