{NULL, NULL}
};
-const struct dri_extension arb_oc_extension =
- { "GL_ARB_occlusion_query", GL_ARB_occlusion_query_functions};
+const struct dri_extension arb_oc_extensions[] = {
+ {"GL_ARB_occlusion_query", GL_ARB_occlusion_query_functions},
+ {NULL, NULL}
+};
/**
* Initializes potential list of extensions if ctx == NULL, or actually enables
driInitExtensions(ctx, ttm_extensions, GL_FALSE);
if (intel == NULL || intel->intelScreen->drmMinor >= 8)
- driInitSingleExtension(ctx, &arb_oc_extension);
+ driInitExtensions(ctx, arb_oc_extensions, GL_FALSE);
}
static const struct dri_debug_control debug_control[] =
const GLuint __driNConfigOptions = 5;
#ifdef USE_NEW_INTERFACE
- static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
+static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
#endif /*USE_NEW_INTERFACE */
- extern const struct dri_extension card_extensions[];
- extern const struct dri_extension ttm_extensions[];
+extern const struct dri_extension card_extensions[];
+extern const struct dri_extension ttm_extensions[];
+#ifndef I915
+extern const struct dri_extension arb_oc_extensions[];
+#endif
/**
* Map all the memory regions described by the screen.
*/
driInitExtensions(NULL, card_extensions, GL_FALSE);
driInitExtensions(NULL, ttm_extensions, GL_FALSE);
+#ifndef I915
+ driInitExtensions(NULL, arb_oc_extensions, GL_FALSE);
+#endif
if (!intelInitDriver(psp))
return NULL;