From aa479a69d6c9710be4d1c63e706f869bb97ad127 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 15 Jan 2015 15:28:14 -0700 Subject: nir: silence compiler warning from visit_src() call v2: use proper argument Reviewed-by: Connor Abbott --- src/glsl/nir/nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index f112db8dd56..81dec1c54c6 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -1541,7 +1541,7 @@ static bool visit_tex_src(nir_tex_instr *instr, nir_foreach_src_cb cb, void *state) { for (unsigned i = 0; i < instr->num_srcs; i++) - if (!visit_src(&instr->src[i], cb, state)) + if (!visit_src(&instr->src[i].src, cb, state)) return false; if (instr->sampler != NULL) -- cgit v1.2.3