OSDN Git Service

gallium: more FEATURE_x tests
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 17 Jun 2008 22:57:02 +0000 (16:57 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:22:01 +0000 (09:22 -0600)
src/mesa/state_tracker/st_context.c

index 1b3b999..d394562 100644 (file)
@@ -164,10 +164,14 @@ static void st_destroy_context_priv( struct st_context *st )
    st_destroy_atoms( st );
    st_destroy_draw( st );
    st_destroy_generate_mipmap(st);
-   st_destroy_bitmap(st);
+#if FEATURE_EXT_framebuffer_blit
    st_destroy_blit(st);
+#endif
    st_destroy_clear(st);
+#if FEATURE_drawpix
+   st_destroy_bitmap(st);
    st_destroy_drawpix(st);
+#endif
 
    _vbo_DestroyContext(st->ctx);