diff --git a/spirv_msl.cpp b/spirv_msl.cpp index e8f6b2a1..087c4150 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -3012,8 +3012,8 @@ string CompilerMSL::builtin_to_glsl(BuiltIn builtin, StorageClass storage) case BuiltInPosition: case BuiltInPointSize: case BuiltInClipDistance: - case BuiltInFragDepth: case BuiltInLayer: + case BuiltInFragDepth: if (current_function && (current_function->self == entry_point)) return stage_out_var_name + "." + CompilerGLSL::builtin_to_glsl(builtin, storage); else