Fixes that some shader permutations could get generated multiple times.