Commit fdb2c3eb authored by Laurent Aimar's avatar Laurent Aimar

Implemented VOUT_DISPLAY_GET_OPENGL in glwin32.

parent 99bf49b1
......@@ -55,6 +55,7 @@ vlc_module_begin()
set_description(N_("OpenGL video output"))
set_capability("vout display", 20)
add_shortcut("glwin32")
add_shortcut("opengl")
set_callbacks(Open, Close)
/* FIXME: Hack to avoid unregistering our window class */
......@@ -208,7 +209,15 @@ static void Display(vout_display_t *vd, picture_t *picture)
static int Control(vout_display_t *vd, int query, va_list args)
{
return CommonControl(vd, query, args);
switch (query) {
case VOUT_DISPLAY_GET_OPENGL: {
vout_opengl_t **gl = va_arg(args, vout_opengl_t **);
*gl = &vd->sys->gl;
return VLC_SUCCESS;
}
default:
return CommonControl(vd, query, args);
}
}
static void Manage (vout_display_t *vd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment