nir: silence compiler warning from visit_src() call

v2: use proper argument

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
Brian Paul
2015-01-15 15:28:14 -07:00
parent 337eca4ac8
commit aa479a69d6
+1 -1
View File
@@ -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)