From 69bc7e34b9ce6a8be6731a42a00a01a120194a41 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 2 Oct 2015 17:49:22 +0200 Subject: vo_opengl: refactor DwmFlush crap Get it out of the way in the common code. MPGLContext.dwm_flush_opt can be removed as well as soon as the option system gets overhauled. --- video/out/opengl/common.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'video/out/opengl/common.h') diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h index 1a6b62aa35..e746fe0d8d 100644 --- a/video/out/opengl/common.h +++ b/video/out/opengl/common.h @@ -119,6 +119,9 @@ typedef struct MPGLContext { const char *native_display_type; void *native_display; + // Windows-specific hack. See vo_opengl dwmflush suboption. + int dwm_flush_opt; + // For free use by the mpgl_driver. void *priv; @@ -131,12 +134,6 @@ typedef struct MPGLContext { int (*vo_control)(struct vo *vo, int *events, int request, void *arg); void (*releaseGlContext)(struct MPGLContext *); - // Used on windows only, tries to vsync with the DWM, and modifies SwapInterval - // when it does so. Returns the possibly modified swapinterval value. - int (*DwmFlush)(struct MPGLContext *, int opt_dwmflush, - int opt_swapinterval, int current_swapinterval); - - // Resize the window, or create a new window if there isn't one yet. // On the first call, it creates a GL context. bool (*config_window)(struct MPGLContext *ctx, int flags); -- cgit v1.2.3