This change allows st_cb_queryobj.h to be used without knowing if
FEATURE_queryobj is enabled.
#include "st_cb_queryobj.h"
+#if FEATURE_queryobj
+
static struct gl_query_object *
st_NewQueryObject(GLcontext *ctx, GLuint id)
{
functions->WaitQuery = st_WaitQuery;
functions->CheckQuery = st_CheckQuery;
}
+
+#endif /* FEATURE_queryobj */
#define ST_CB_QUERYOBJ_H
+#include "main/mtypes.h"
+
/**
* Subclass of gl_query_object
*/
}
+#if FEATURE_queryobj
extern void
st_init_query_functions(struct dd_function_table *functions);
+#else
+
+static INLINE void
+st_init_query_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_queryobj */
#endif
st_init_fbo_functions(functions);
st_init_feedback_functions(functions);
st_init_program_functions(functions);
-#if FEATURE_queryobj
st_init_query_functions(functions);
-#endif
st_init_cond_render_functions(functions);
st_init_readpixels_functions(functions);
st_init_texture_functions(functions);