From d38d26057ae29d588c59456e116c5b9526d24fce Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 9 Jun 2016 18:43:40 +0200 Subject: vo_opengl: hwdec_d3d11eglrgb: remove some more unused fields Not sure what/if I was thinking there. --- video/out/opengl/hwdec_d3d11eglrgb.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'video') diff --git a/video/out/opengl/hwdec_d3d11eglrgb.c b/video/out/opengl/hwdec_d3d11eglrgb.c index 9e83ac4b36..2e61189154 100644 --- a/video/out/opengl/hwdec_d3d11eglrgb.c +++ b/video/out/opengl/hwdec_d3d11eglrgb.c @@ -40,16 +40,11 @@ struct priv { struct mp_hwdec_ctx hwctx; ID3D11Device *d3d11_device; - ID3D11DeviceContext *device_ctx; - ID3D11VideoDevice *video_dev; - ID3D11VideoContext *video_ctx; EGLDisplay egl_display; EGLConfig egl_config; EGLSurface egl_surface; - ID3D11Texture2D *texture; - GLuint gl_texture; }; @@ -82,18 +77,6 @@ static void destroy(struct gl_hwdec *hw) hwdec_devices_remove(hw->devs, &p->hwctx); - if (p->video_ctx) - ID3D11VideoContext_Release(p->video_ctx); - p->video_ctx = NULL; - - if (p->video_dev) - ID3D11VideoDevice_Release(p->video_dev); - p->video_dev = NULL; - - if (p->device_ctx) - ID3D11DeviceContext_Release(p->device_ctx); - p->device_ctx = NULL; - if (p->d3d11_device) ID3D11Device_Release(p->d3d11_device); p->d3d11_device = NULL; @@ -160,19 +143,6 @@ static int create(struct gl_hwdec *hw) goto fail; } - hr = ID3D11Device_QueryInterface(p->d3d11_device, &IID_ID3D11VideoDevice, - (void **)&p->video_dev); - if (FAILED(hr)) - goto fail; - - ID3D11Device_GetImmediateContext(p->d3d11_device, &p->device_ctx); - if (!p->device_ctx) - goto fail; - hr = ID3D11DeviceContext_QueryInterface(p->device_ctx, &IID_ID3D11VideoContext, - (void **)&p->video_ctx); - if (FAILED(hr)) - goto fail; - EGLint attrs[] = { EGL_BUFFER_SIZE, 32, EGL_RED_SIZE, 8, -- cgit v1.2.3