aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-06-09 18:43:40 +0200
committerGravatar wm4 <wm4@nowhere>2016-06-09 18:43:40 +0200
commitd38d26057ae29d588c59456e116c5b9526d24fce (patch)
tree9b7734b1f92abe9b4bb69b05ae6b4214edfce873
parent262ceca731487e009c3f5d90bd1fe1d9914f6ee2 (diff)
vo_opengl: hwdec_d3d11eglrgb: remove some more unused fields
Not sure what/if I was thinking there.
-rw-r--r--video/out/opengl/hwdec_d3d11eglrgb.c30
1 files changed, 0 insertions, 30 deletions
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,