diff options
author | Kristian Høgsberg <[email protected]> | 2010-05-21 10:36:56 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-05-21 23:24:37 -0400 |
commit | 643b2af0203764cb9f0a5b9e082937ab3f243523 (patch) | |
tree | 685afc7329526395fd7865017d05893c9bd3396d /src/glx/dri_glx.c | |
parent | 4db0c760195c67f1bc114fdfb8464791030a526c (diff) |
glx: Split tfp functions out to context vtable
This introduces a new per-context vtable, which lets us clean up all the
#ifdef's a bit and move the DRI2 specific implementation into dri2_glx.c.
Diffstat (limited to 'src/glx/dri_glx.c')
-rw-r--r-- | src/glx/dri_glx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 74afa60301d..12a2cf3af24 100644 --- a/src/glx/dri_glx.c +++ b/src/glx/dri_glx.c @@ -634,6 +634,11 @@ driDestroyScreen(__GLXscreenConfigs * psc) dlclose(psc->driver); } +static const struct glx_context_vtable dri_context_vtable = { + NULL, + NULL, +}; + static __GLXDRIscreen * driCreateScreen(__GLXscreenConfigs * psc, int screen, __GLXdisplayPrivate * priv) @@ -700,6 +705,8 @@ driCreateScreen(__GLXscreenConfigs * psc, int screen, psp->waitX = NULL; psp->waitGL = NULL; + psc->direct_context_vtable = &dri_context_vtable; + return psp; } |