diff options
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 11 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 9 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c index 7dc3b0b160..18b6bb8dd8 100644 --- a/options/options.c +++ b/options/options.c @@ -57,8 +57,8 @@ #include "video/out/drm_common.h" #endif -#if HAVE_GL -#include "video/out/opengl/hwdec.h" +#if HAVE_GPU +#include "video/out/gpu/hwdec.h" #endif static void print_version(struct mp_log *log) @@ -90,6 +90,7 @@ extern const struct m_obj_list af_obj_list; extern const struct m_obj_list vo_obj_list; extern const struct m_obj_list ao_obj_list; +extern const struct m_sub_options opengl_conf; extern const struct m_sub_options angle_conf; extern const struct m_sub_options cocoa_conf; @@ -687,10 +688,14 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("", vo, vo_sub_opts, 0), OPT_SUBSTRUCT("", demux_opts, demux_conf, 0), -#if HAVE_GL +#if HAVE_GPU OPT_SUBSTRUCT("", gl_video_opts, gl_video_conf, 0), #endif +#if HAVE_GL + OPT_SUBSTRUCT("", opengl_opts, opengl_conf, 0), +#endif + #if HAVE_EGL_ANGLE_WIN32 OPT_SUBSTRUCT("", angle_opts, angle_conf, 0), #endif diff --git a/options/options.h b/options/options.h index 895c12182b..c02b7a34ca 100644 --- a/options/options.h +++ b/options/options.h @@ -328,6 +328,7 @@ typedef struct MPOpts { struct gl_video_opts *gl_video_opts; struct angle_opts *angle_opts; + struct opengl_opts *opengl_opts; struct cocoa_opts *cocoa_opts; struct dvd_opts *dvd_opts; |