In here we actually do want to assign it. Fix compilation.
authorZack Rusin <zack@tungstengraphics.com>
Mon, 24 Sep 2007 09:43:07 +0000 (05:43 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Mon, 24 Sep 2007 09:43:07 +0000 (05:43 -0400)
src/mesa/state_tracker/st_atom_vs.c

index ae51e97..9050f30 100644 (file)
@@ -216,7 +216,7 @@ st_translate_vertex_shader(struct st_context *st,
       tgsi_emit_sse2( stvp->tokens, &stvp->sse2_program );
 
    if (!cso->state.executable)
-      cso->state.executable = (void *) x86_get_func( &stvp->sse2_program );
+      ((struct cso_vertex_shader*)cso)->state.executable = (void *) x86_get_func( &stvp->sse2_program );
 #endif
 
    stvp->dirty = 0;