st/mesa: fix a crash due to passing a draw vertex shader into the driver
[mesa.git] / src / mesa / state_tracker / st_context.h
index 853a1895825cdf555db408312a5d9a1d0d0e833a..267aa32ad784871030bee5fc09a67790f6a5b1e7 100644 (file)
@@ -38,6 +38,7 @@
 #include "util/list.h"
 #include "vbo/vbo.h"
 #include "util/list.h"
+#include "cso_cache/cso_context.h"
 
 
 #ifdef __cplusplus
@@ -322,7 +323,7 @@ struct st_context
    } pbo;
 
    /** for drawing with st_util_vertex */
-   struct pipe_vertex_element util_velems[3];
+   struct cso_velems_state util_velems;
 
    /** passthrough vertex shader matching the util_velem attributes */
    void *passthrough_vs;