mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
st/dri: remove a dummy function dri2_create_context
It does nothing besides calling dri_create_context with the same parameters.
This commit is contained in:
parent
6e7942936c
commit
a3cde50eff
1 changed files with 1 additions and 15 deletions
|
|
@ -661,20 +661,6 @@ fail:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static boolean
|
||||
dri2_create_context(gl_api api, const struct gl_config * visual,
|
||||
__DRIcontext * cPriv, void *sharedContextPrivate)
|
||||
{
|
||||
struct dri_context *ctx = NULL;
|
||||
|
||||
if (!dri_create_context(api, visual, cPriv, sharedContextPrivate))
|
||||
return FALSE;
|
||||
|
||||
ctx = cPriv->driverPrivate;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static boolean
|
||||
dri2_create_buffer(__DRIscreen * sPriv,
|
||||
__DRIdrawable * dPriv,
|
||||
|
|
@ -702,7 +688,7 @@ const struct __DriverAPIRec driDriverAPI = {
|
|||
.InitScreen = NULL,
|
||||
.InitScreen2 = dri2_init_screen,
|
||||
.DestroyScreen = dri_destroy_screen,
|
||||
.CreateContext = dri2_create_context,
|
||||
.CreateContext = dri_create_context,
|
||||
.DestroyContext = dri_destroy_context,
|
||||
.CreateBuffer = dri2_create_buffer,
|
||||
.DestroyBuffer = dri_destroy_buffer,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue