summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_program.c
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-09-28 12:28:16 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-09-28 12:28:16 -0400
commit901577e07fcab0cf90a272fee900cb0831ae84c3 (patch)
tree9e8674230a3e584c674d0683de5d40321bd51fc1 /src/mesa/state_tracker/st_cb_program.c
parentf2a33a63f1f41681375baa2a9ad261cb60db2a85 (diff)
Revert "Redoing the way we handle vertex shaders for the draw module."
This reverts commit 6dcfddb8e2ec2bfb6187b912807fa65f28da2c5e.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_program.c')
-rw-r--r--src/mesa/state_tracker/st_cb_program.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c
index 3a7ce9405e..25dbc2c244 100644
--- a/src/mesa/state_tracker/st_cb_program.c
+++ b/src/mesa/state_tracker/st_cb_program.c
@@ -86,6 +86,10 @@ static struct gl_program *st_new_program( GLcontext *ctx,
prog->serialNo = 1;
+#if defined(__i386__) || defined(__386__)
+ x86_init_func( &prog->sse2_program );
+#endif
+
return _mesa_init_vertex_program( ctx,
&prog->Base,
target,
@@ -125,6 +129,9 @@ static void st_delete_program( GLcontext *ctx,
case GL_VERTEX_PROGRAM_ARB:
{
struct st_vertex_program *stvp = (struct st_vertex_program *) prog;
+#if defined(__i386__) || defined(__386__)
+ x86_release_func( &stvp->sse2_program );
+#endif
st_remove_vertex_program(st, stvp);
}
break;