st/mesa: Make FEATURE_feedback and FEATURE_rastpos more modular.

Make st_cb_feedback.h FEATURE_feedback aware and st_cb_rastpos.h
FEATURE_rastpos aware.  Move creation of selection/feedback draw context
to st_init_draw.
This commit is contained in:
Chia-I Wu
2010-03-31 12:01:16 +08:00
parent 14a92b26ff
commit bcce57c2e9
6 changed files with 50 additions and 21 deletions

View File

@@ -28,6 +28,20 @@
#ifndef ST_CB_RASTERPOS_H
#define ST_CB_RASTERPOS_H
#include "main/mtypes.h"
#if FEATURE_rastpos
extern void st_init_rasterpos_functions(struct dd_function_table *functions);
#endif
#else
static INLINE void
st_init_rasterpos_functions(struct dd_function_table *functions)
{
}
#endif /* FEATURE_rastpos */
#endif /* ST_CB_RASTERPOS_H */