gallium: added FEATURE_x tests
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 17 Jun 2008 19:13:34 +0000 (13:13 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:22:00 +0000 (09:22 -0600)
src/mesa/state_tracker/st_context.c

index e20e0c08cbd42c8044af4dd0e200c7fd403bf630..9decca8a14b1b381971cb0e67e551b9e5e6300bc 100644 (file)
@@ -247,17 +247,27 @@ void st_init_driver_functions(struct dd_function_table *functions)
 {
    _mesa_init_glsl_driver_functions(functions);
 
+#if FEATURE_accum
    st_init_accum_functions(functions);
-   st_init_bitmap_functions(functions);
+#endif
+#if FEATURE_EXT_framebuffer_blit
    st_init_blit_functions(functions);
+#endif
    st_init_bufferobject_functions(functions);
    st_init_clear_functions(functions);
+#if FEATURE_drawpix
+   st_init_bitmap_functions(functions);
    st_init_drawpixels_functions(functions);
+   st_init_rasterpos_functions(functions);
+#endif
    st_init_fbo_functions(functions);
+#if FEATURE_feedback
    st_init_feedback_functions(functions);
+#endif
    st_init_program_functions(functions);
+#if FEATURE_ARB_occlusion_query
    st_init_query_functions(functions);
-   st_init_rasterpos_functions(functions);
+#endif
    st_init_readpixels_functions(functions);
    st_init_texture_functions(functions);
    st_init_flush_functions(functions);