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/common.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/common.c') diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 6720e13f2a..2b6d3949ef 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -290,10 +290,18 @@ static const struct gl_functions gl_functions[] = { }, // These don't exist - they are for the sake of mpv internals, and libmpv // interaction (see libmpv/opengl_cb.h). + { + .extension = "GL_MP_MPGetNativeDisplay", + .functions = (const struct gl_function[]) { + DEF_FN(MPGetNativeDisplay), + {0} + }, + }, + // Same, but using the old name. { .extension = "GL_MP_D3D_interfaces", .functions = (const struct gl_function[]) { - DEF_FN(MPGetD3DInterface), + DEF_FN_NAME(MPGetNativeDisplay, "glMPGetD3DInterface"), {0} }, }, -- cgit v1.2.3