check for USE_X86_ASM or SLANG_X86 in st_delete_program()
authorBrian <brian.paul@tungstengraphics.com>
Sat, 25 Aug 2007 00:19:50 +0000 (18:19 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 25 Aug 2007 00:19:50 +0000 (18:19 -0600)
src/mesa/state_tracker/st_cb_program.c

index 25da720d8654d638b2eb656249e9f6f6887a4296..b84f552404fb0e3974d122f18ec80762961974bd 100644 (file)
@@ -112,9 +112,11 @@ static void st_delete_program( GLcontext *ctx,
    switch( prog->Target ) {
    case GL_VERTEX_PROGRAM_ARB:
    {
+#if defined(USE_X86_ASM) || defined(SLANG_X86)
       struct st_vertex_program *p = (struct st_vertex_program *) prog;
 
       x86_release_func( &p->sse2_program );
+#endif
       break;
    }