diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 10 | 
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 2210b95ef2..fa57ef8666 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1055,13 +1055,9 @@ _slang_gen_function_call(slang_assemble_ctx *A, slang_function *fun,     }     /* Replace the function call with the inlined block */ -#if 0 -   slang_operation_construct(oper); -   slang_operation_copy(oper, inlined); -#else -   *oper = *inlined;  /* XXX slang_operation_copy() */ -#endif - +   slang_operation_destruct(oper); +   *oper = *inlined; +   /* XXX slang_operation_destruct(inlined) ??? */  #if 0     assert(inlined->locals);  | 
