1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-03 13:41:49 +00:00

vo_opengl: hwdec_d3d11eglrgb: remove some more unused fields

Not sure what/if I was thinking there.
This commit is contained in:
wm4 2016-06-09 18:43:40 +02:00
parent 262ceca731
commit d38d26057a

View File

@ -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,