Please note that the function cat_surf_render in the CAT12 toolbox could not proceed with the gifti files with cdata which is in file_array format properly. I have submitted this issue to Gaser.
A simple way to solve this problem is to insert one line between two lines in function cat_surf_render:
M.cdata = [M.cdata;Mt.cdata]; % line 248
M.cdata = double(M.cdata); % INSERT HERE!!!
labelmapclim = [min(M.cdata),max(M.cdata)]; % line 249
In different versions of CAT12 these two lines have different positions. So please Ctrl/cmd + F
to find these two lines and then insert the code.
Then it would work all well.