renderer2: tr_local function declarations fix