     }
 
     int pattern = bitCount((patchParam >> 8) & 0xf);
+#ifdef OSD_PATCH_ENABLE_SINGLE_CREASE
     if (inpt.sharpness > 0) pattern += 6;
+#endif
 
     return patchColors[6*patchType + pattern];
 }

    outpt.v.normal = normal;
#endif

    outpt.sharpness = inpt[index].sharpness;

#ifdef VARYING_COLOR
    outpt.color = inpt[index].color;

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

out block {
    OutputVertex v;
    noperspective out vec4 edgeDistance;
#ifdef OSD_PATCH_ENABLE_SINGLE_CREASE
    float sharpness;
#endif
    OSD_USER_VARYING_DECLARE
} outpt;

