From 1bfec25031f867b9ee4941ab503be01e3f9a7d23 Mon Sep 17 00:00:00 2001 From: Ivan Gyurdiev Date: Sun, 2 Jul 2006 19:29:46 -0600 Subject: [PATCH] wined3d: Resync ARB mnxn function with GLSL mnxn function. --- dlls/wined3d/arb_program_shader.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 20a7e3adb80..753789faf28 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -800,10 +800,14 @@ void vshader_hw_mnxn(SHADER_OPCODE_ARG* arg) { int nComponents = 0; SHADER_OPCODE_ARG tmpArg; + memset(&tmpArg, 0, sizeof(SHADER_OPCODE_ARG)); + /* Set constants for the temporary argument */ - tmpArg.shader = arg->shader; - tmpArg.buffer = arg->buffer; - tmpArg.src[0] = arg->src[0]; + tmpArg.shader = arg->shader; + tmpArg.buffer = arg->buffer; + tmpArg.src[0] = arg->src[0]; + tmpArg.src_addr[0] = arg->src_addr[0]; + tmpArg.reg_maps = arg->reg_maps; switch(arg->opcode->opcode) { case D3DSIO_M4x4: