wined3d: Don't override variable that still has something we need.

Vitaliy Margolen wine-patch at kievinfo.com
Sun Mar 12 14:45:47 CST 2006


ChangeLog:
wined3d: Don't override variable that still has something we need.
Use local temp variable instead.

 dlls/wined3d/pixelshader.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
30b826dc08ce3c4262864f211250f1719ec874e6
diff --git a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c
index f534171..6bc2c82 100644
--- a/dlls/wined3d/pixelshader.c
+++ b/dlls/wined3d/pixelshader.c
@@ -1416,8 +1416,8 @@ inline static VOID IWineD3DPixelShaderIm
                     /* Generate lines that handle input modifier computation */
                     for (i = 1; i < curOpcode->num_params; ++i) {
                         TRACE("(%p) : Param %ld token %lx\n", This, i, *(pToken + i));
-                        if (gen_input_modifier_line(*(pToken + i), i - 1, regs[i - 1], tmpLine, This->constants)) {
-                            addline(&lineNum, pgmStr, &pgmLength, tmpLine);
+                        if (gen_input_modifier_line(*(pToken + i), i - 1, regs[i - 1], tmpOp, This->constants)) {
+                            addline(&lineNum, pgmStr, &pgmLength, tmpOp);
                         }
                     }
 


More information about the wine-patches mailing list