[Mesa-dev] glsl: strange looking code in ast_function.cpp

Aras Pranckevicius aras at unity3d.com
Wed Aug 17 07:13:33 PDT 2011

Lines 290..294 in ast_function.cpp:

 deref = new(ctx) ir_dereference_variable(var);
 ir_assignment *assign = new(ctx) ir_assignment(deref, call, NULL);
 deref = new(ctx) ir_dereference_variable(var);

The second creation of ir_dereference_variable almost looks like some
copy-paste accident. If there is a reason for it, I guess a code
comment would help to figure out why.

Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info

More information about the mesa-dev mailing list