summaryrefslogtreecommitdiff
path: root/src/xvmc
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-12 20:37:41 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-12 20:37:41 +0800
commitcd73c6a5a78eac726b14ef242b8452c559c4c003 (patch)
tree984fa95b80fa11e3af126adf485f532f89fd37e7 /src/xvmc
parent21580add63307ca68790bf911243b8675f5f7c64 (diff)
Pass default visual in dri context create
Diffstat (limited to 'src/xvmc')
-rw-r--r--src/xvmc/intel_xvmc.c2
-rw-r--r--src/xvmc/xf86dri.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c
index 91a050f0..489a2c2c 100644
--- a/src/xvmc/intel_xvmc.c
+++ b/src/xvmc/intel_xvmc.c
@@ -337,7 +337,7 @@ Status XvMCCreateContext(Display *display, XvPortID port,
pthread_mutex_init(&xvmc_driver->ctxmutex, NULL);
/* context_id is alloc in _xvmc_create_context */
- if (!uniDRICreateContext(display, screen, NULL,
+ if (!uniDRICreateContext(display, screen, DefaultVisual(display, screen),
context->context_id,
&intel_ctx->hw_context)) {
XVMC_ERR("Could not create DRI context for xvmc ctx %d.",
diff --git a/src/xvmc/xf86dri.c b/src/xvmc/xf86dri.c
index 97022e4a..798c1a84 100644
--- a/src/xvmc/xf86dri.c
+++ b/src/xvmc/xf86dri.c
@@ -374,8 +374,7 @@ uniDRICreateContext(dpy, screen, visual, context, hHWContext)
drm_context_t *hHWContext;
{
return uniDRICreateContextWithConfig(dpy, screen,
- visual ? visual->visualid : 0,
- context, hHWContext);
+ visual->visualid, context, hHWContext);
}
Bool