summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_glx.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-05-21 10:36:56 -0400
committerKristian Høgsberg <[email protected]>2010-05-21 23:24:37 -0400
commit643b2af0203764cb9f0a5b9e082937ab3f243523 (patch)
tree685afc7329526395fd7865017d05893c9bd3396d /src/glx/dri_glx.c
parent4db0c760195c67f1bc114fdfb8464791030a526c (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.c7
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;
}