Fix a crash when change a material reclect cubemap.
Merge pull request #1032 from eightyeight/issue-694

Fix a crash when change a material reclect cubemap