summaryrefslogtreecommitdiff
path: root/hw/xfree86/dri/xf86dri.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-10-17 17:18:47 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-18 21:03:43 -0400
commit0af8180683247955ce4cfd48e6a5b4d00bbe618a (patch)
treea652d9ad5c422b4cbca56eb02c7b99c3bd4f25c6 /hw/xfree86/dri/xf86dri.c
parent7d74690536b64f7b8e8036507ab7790807349c50 (diff)
Drop VisualConfigPriv support from the DRI module.
No DDX driver uses this, and this patch stops the DRI module from poking around GLX module data structures.
Diffstat (limited to 'hw/xfree86/dri/xf86dri.c')
-rw-r--r--hw/xfree86/dri/xf86dri.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/hw/xfree86/dri/xf86dri.c b/hw/xfree86/dri/xf86dri.c
index fdf0e9983..130afdfa4 100644
--- a/hw/xfree86/dri/xf86dri.c
+++ b/hw/xfree86/dri/xf86dri.c
@@ -337,19 +337,9 @@ ProcXF86DRICreateContext(
rep.sequenceNumber = client->sequence;
pScreen = screenInfo.screens[stuff->screen];
- visual = pScreen->visuals;
-
- /* Find the requested X visual */
- for (i = 0; i < pScreen->numVisuals; i++, visual++)
- if (visual->vid == stuff->visual)
- break;
- if (i == pScreen->numVisuals) {
- /* No visual found */
- return BadValue;
- }
if (!DRICreateContext( pScreen,
- visual,
+ NULL,
stuff->context,
(drm_context_t *)&rep.hHWContext)) {
return BadValue;