From b14c9eb748d80cff3e362c2093a8fb26bce337cf Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 24 Sep 2015 21:07:16 +0200 Subject: client API: rename GL_MP_D3D_interfaces This is a pseudo-OpenGL extension for letting libmpv query native windowing system handles from the API user. (It uses the OpenGL extension mechanism because I'm lazy. In theory it would be nicer to let the user pass them with mpv_opengl_cb_init_gl(), but this would require a more intrusive API change to extend its argument list.) The naming of the extension and associated function was unnecessarily Windows specific (using "D3D"), even though it would work just fine for other platforms. So deprecate the old names and introduce new ones. The old ones still work. --- video/out/opengl/hwdec_dxva2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/out/opengl/hwdec_dxva2.c') diff --git a/video/out/opengl/hwdec_dxva2.c b/video/out/opengl/hwdec_dxva2.c index f6b3ac0e74..aba442b653 100644 --- a/video/out/opengl/hwdec_dxva2.c +++ b/video/out/opengl/hwdec_dxva2.c @@ -23,13 +23,13 @@ static void destroy(struct gl_hwdec *hw) static int create(struct gl_hwdec *hw) { GL *gl = hw->gl; - if (hw->hwctx || !gl->MPGetD3DInterface) + if (hw->hwctx || !gl->MPGetNativeDisplay) return -1; struct priv *p = talloc_zero(hw, struct priv); hw->priv = p; - p->ctx.d3d9_device = gl->MPGetD3DInterface("IDirect3DDevice9"); + p->ctx.d3d9_device = gl->MPGetNativeDisplay("IDirect3DDevice9"); if (!p->ctx.d3d9_device) return -1; -- cgit v1.2.3