From ab6f6aa61e491f214bc486ad512bfdadc5932fcf Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 8 Sep 2015 22:46:36 +0200 Subject: vo_opengl: move gl_video_opts copying code to separate function Sigh... Hopefully this code will be completely unnecessary one day, as it's only needed due to the sub-option parser craziness. Move dumb_mode to the top of the struct, so the C universal initializer doesn't cause warnings with all those broken compilers. --- video/out/gl_video.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/gl_video.h') diff --git a/video/out/gl_video.h b/video/out/gl_video.h index e8f8ffa030..443cb76787 100644 --- a/video/out/gl_video.h +++ b/video/out/gl_video.h @@ -43,6 +43,7 @@ struct scaler_config { }; struct gl_video_opts { + int dumb_mode; struct scaler_config scaler[4]; float gamma; int gamma_auto; @@ -71,7 +72,6 @@ struct gl_video_opts { char *scale_shader; char **pre_shaders; char **post_shaders; - int dumb_mode; }; extern const struct m_sub_options gl_video_conf; -- cgit v1.2.3