mesa: Fix transform feedback of unsubscripted gl_ClipDistance array.
[mesa.git] / src / mesa / main / mtypes.h
index 64d8c8d3f71982e6d3a769d870ff29e640f0a198..bb46ba0c0351fe63c5ea2f7763422072ca7d21ad 100644 (file)
@@ -2277,6 +2277,8 @@ struct gl_shader_program
    /** Vertex shader state - copied into gl_vertex_program at link time */
    struct {
       GLboolean UsesClipDistance; /**< True if gl_ClipDistance is written to. */
+      GLuint ClipDistanceArraySize; /**< Size of the gl_ClipDistance array, or
+                                         0 if not present. */
    } Vert;
 
    /* post-link info: */