On 22/03/07, Fabian Bieler <der.fabe at gmx.net> wrote: > + shader_addline(arg->buffer, "T%u%s /= T%u%s;\n", sampler_idx, coord_mask, sampler_idx, coord_div_mask); > Are you sure that's correct? This will modify the coordinates for later instructions as well.