Add some guards around new glsl aliasmodel code