diff options
author | Brian Paul <[email protected]> | 2004-06-20 19:16:55 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-06-20 19:16:55 +0000 |
commit | 7576b9b19d433f90c7f9daae01888e7bfea7e7b9 (patch) | |
tree | 9516f486a46419ac9be2a62d1b025949678fbade /src/mesa/swrast/s_nvfragprog.c | |
parent | f252f64430ccb957698fcf85e84c9d64008147eb (diff) |
store's to RC/HC didn't work (bug 976287)
Diffstat (limited to 'src/mesa/swrast/s_nvfragprog.c')
-rw-r--r-- | src/mesa/swrast/s_nvfragprog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index f679ca67a2a..cc88e86d9aa 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -391,6 +391,7 @@ store_vector4( const struct fp_instruction *inst, const GLboolean clamp = inst->Saturate; const GLboolean updateCC = inst->UpdateCondRegister; GLfloat *dstReg; + GLfloat dummyReg[4]; GLfloat clampedValue[4]; const GLboolean *writeMask = dest->WriteMask; GLboolean condWriteMask[4]; @@ -402,6 +403,9 @@ store_vector4( const struct fp_instruction *inst, case PROGRAM_TEMPORARY: dstReg = machine->Temporaries[dest->Index]; break; + case PROGRAM_WRITE_ONLY: + dstReg = dummyReg; + return; default: _mesa_problem(NULL, "bad register file in store_vector4(fp)"); return; |