From: Roland Scheidegger Date: Mon, 1 Mar 2010 17:36:19 +0000 (+0100) Subject: st/mesa: fix mesa statetracker adaption to new vertex elements interface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18603a2f07b99bfdbaab35b38b292233fc3e7689;p=mesa.git st/mesa: fix mesa statetracker adaption to new vertex elements interface --- diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 397dddbb476..15d1299a9e0 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -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;