summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r--video/out/gl_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index 2e25d331c7..06960f75ea 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -93,6 +93,12 @@ typedef struct MPGLContext {
void (*releaseGlContext)(struct MPGLContext *);
void (*set_current)(struct MPGLContext *, bool current);
+ // 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 according to what's specified
// in MPGLContext.requested_gl_version. This is just a hint, and if the