dri: Add DRI entrypoints to create a context for a given API
This commit is contained in:
@@ -586,6 +586,7 @@ intelInitDriverFunctions(struct dd_function_table *functions)
|
||||
|
||||
GLboolean
|
||||
intelInitContext(struct intel_context *intel,
|
||||
int api,
|
||||
const __GLcontextModes * mesaVis,
|
||||
__DRIcontext * driContextPriv,
|
||||
void *sharedContextPrivate,
|
||||
@@ -601,8 +602,8 @@ intelInitContext(struct intel_context *intel,
|
||||
if (intelScreen->bufmgr == NULL)
|
||||
return GL_FALSE;
|
||||
|
||||
if (!_mesa_initialize_context(&intel->ctx, mesaVis, shareCtx,
|
||||
functions, (void *) intel)) {
|
||||
if (!_mesa_initialize_context_for_api(&intel->ctx, api, mesaVis, shareCtx,
|
||||
functions, (void *) intel)) {
|
||||
printf("%s: failed to init mesa context\n", __FUNCTION__);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user