Merge "Fix crash when shadowSize is 0"