diff options
author | Aapo Tahkola <[email protected]> | 2005-02-01 23:12:36 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-02-01 23:12:36 +0000 |
commit | 6b158a7d23b8d2c290589a53d604f2e50d435922 (patch) | |
tree | 5de24b1e75334e5a821a76e185326b174233af64 /src | |
parent | b5c90ca7d9f4437e8d4ce4dda24aa1147f6a8ea3 (diff) |
Add a missing break and a reminder.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_vertexprog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertexprog.c b/src/mesa/drivers/dri/r300/r300_vertexprog.c index 40be190d71e..6f1cd9fcac9 100644 --- a/src/mesa/drivers/dri/r300/r300_vertexprog.c +++ b/src/mesa/drivers/dri/r300/r300_vertexprog.c @@ -474,7 +474,7 @@ static void translate_program(struct r300_vertex_program *vp) for(i=0; i < operands; i++) src[i]=vpi->SrcReg[i]; - if(operands == 3){ + if(operands == 3){ /* TODO: scalars */ if( CMP_SRCS(src[1], src[2]) || CMP_SRCS(src[0], src[2]) ){ o_inst->op=MAKE_VSF_OP(R300_VPI_OUT_OP_ADD, u_temp_i, VSF_FLAG_ALL, VSF_OUT_CLASS_TMP); @@ -583,6 +583,7 @@ static void translate_program(struct r300_vertex_program *vp) vpi->Opcode=VP_OPCODE_MAX; src[1]=src[0]; src[1].Negate=GL_TRUE; + break; #else o_inst->op=MAKE_VSF_OP(R300_VPI_OUT_OP_MAX, vpi->DstReg.Index, t_dst_mask(vpi->DstReg.WriteMask), t_dst_class(vpi->DstReg.File)); |