diff options
author | Roland Scheidegger <rscheidegger@gmx.ch> | 2005-09-07 21:59:30 +0000 |
---|---|---|
committer | Roland Scheidegger <rscheidegger@gmx.ch> | 2005-09-07 21:59:30 +0000 |
commit | b683b0df45de5f9fc83759b09d630fff7064e394 (patch) | |
tree | bb3428e400e50ee8ef63dd479f95ef42a299a280 /src/mesa | |
parent | 8693b70e8fccf5d942e51a0c24221f6410393791 (diff) |
fix bug with ATI_fragment_shader in swrast (need to copy all 4 values due to later applied srcRep)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/swrast/s_atifragshader.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_atifragshader.c b/src/mesa/swrast/s_atifragshader.c index 1e7e95cac4..c3d9af8c17 100644 --- a/src/mesa/swrast/s_atifragshader.c +++ b/src/mesa/swrast/s_atifragshader.c @@ -301,12 +301,10 @@ handle_sample_op(GLcontext * ctx, struct atifs_machine *machine, fetch_texel(ctx, tex_coords, 0.0F, idx, machine->Registers[idx]); } -#define SETUP_SRC_REG(optype, i, x) do { \ - if (optype) \ - src[optype][i][3] = x[3]; \ - else \ - COPY_3V(src[optype][i], x); \ - } while (0) +#define SETUP_SRC_REG(optype, i, x) \ +do { \ + COPY_4V(src[optype][i], x); \ +} while (0) static GLboolean execute_shader(GLcontext * ctx, |