st/mesa: fix mesa statetracker adaption to new vertex elements interface
authorRoland Scheidegger <sroland@vmware.com>
Mon, 1 Mar 2010 17:36:19 +0000 (18:36 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 1 Mar 2010 17:36:19 +0000 (18:36 +0100)
src/mesa/state_tracker/st_draw.c

index 397dddbb476d26b09a431a37a988ff8c89412e16..15d1299a9e0ef69a076880ee262ae5182805a217 100644 (file)
@@ -57,6 +57,7 @@
 #include "pipe/p_defines.h"
 #include "util/u_inlines.h"
 #include "util/u_format.h"
+#include "cso_cache/cso_context.h"
 
 
 static GLuint double_types[4] = {
@@ -600,7 +601,7 @@ st_draw_vbo(GLcontext *ctx,
 #endif
 
    pipe->set_vertex_buffers(pipe, num_vbuffers, vbuffer);
-   pipe->set_vertex_elements(pipe, num_velements, velements);
+   cso_set_vertex_elements(ctx->st->cso_context, num_velements, velements);
 
    if (num_vbuffers == 0 || num_velements == 0)
       return;