diff options
author | Aapo Tahkola <[email protected]> | 2005-10-26 17:55:28 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-10-26 17:55:28 +0000 |
commit | d240b29b95573e37baa627650661a2ced109c68d (patch) | |
tree | a3605f5843a3680b225e5fe274613f13003b9d24 /src/mesa/drivers/dri/r300/r300_fragprog.c | |
parent | 22605caea8af801185b7f4a64e3bb078b8712732 (diff) |
Reduce stderr noise and fix some compiler warnings.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_fragprog.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog.c b/src/mesa/drivers/dri/r300/r300_fragprog.c index f43b50e34df..4236bdbcca5 100644 --- a/src/mesa/drivers/dri/r300/r300_fragprog.c +++ b/src/mesa/drivers/dri/r300/r300_fragprog.c @@ -314,7 +314,7 @@ static pfs_reg_t emit_const4fv(struct r300_fragment_program *rp, GLfloat *cp) static pfs_reg_t negate(pfs_reg_t r) { - r.negate = 1; + r.negate = !r.negate; return r; } @@ -911,7 +911,6 @@ static void init_program(struct r300_fragment_program *rp) struct fragment_program *mp = &rp->mesa_program; struct fp_instruction *fpi; GLuint InputsRead = mp->InputsRead; - GLuint fp_reg = 0; GLuint temps_used = 0; /* for rp->temps[] */ int i; @@ -1020,7 +1019,6 @@ static void update_params(struct r300_fragment_program *rp) { void translate_fragment_shader(struct r300_fragment_program *rp) { - int i; if (!rp->translated) { init_program(rp); |