diff options
Diffstat (limited to 'src/gallium/state_trackers/vdpau/device.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index 4fcce9112aa..25fa8d88844 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -73,6 +73,8 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device, goto no_handle; } + vl_compositor_init(&dev->compositor, dev->context->pipe); + *get_proc_address = &vlVdpGetProcAddress; VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Device created succesfully\n"); @@ -152,6 +154,7 @@ vlVdpDeviceDestroy(VdpDevice device) if (!dev) return VDP_STATUS_INVALID_HANDLE; + vl_compositor_cleanup(&dev->compositor); vl_video_destroy(dev->context); vl_screen_destroy(dev->vscreen); |