 in block {
     OutputVertex v;
     noperspective in vec4 edgeDistance;
+#ifdef OSD_PATCH_ENABLE_SINGLE_CREASE
     float sharpness;
+#endif
     OSD_USER_VARYING_DECLARE
 } inpt;
 

layout(triangle_strip, max_vertices = EDGE_VERTS) out;
in block {
    OutputVertex v;
    float sharpness;
    OSD_USER_VARYING_DECLARE
} inpt[EDGE_VERTS];

out block {
    OutputVertex v;
    noperspective out vec4 edgeDistance;
    float sharpness;
    OSD_USER_VARYING_DECLARE
} outpt;


    }

    int pattern = bitCount((patchParam >> 8) & 0xf);
#ifdef OSD_PATCH_ENABLE_SINGLE_CREASE
    if (inpt.sharpness > 0) pattern += 6;
#endif

    return patchColors[6*patchType + pattern];
}
