summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context.h
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2016-08-18 17:46:59 +0300
committerJames Ross-Gowan <rossymiles@gmail.com>2016-08-25 23:47:37 +1000
commitef0b2e33b1cc8d064f64b864443bf1c233691508 (patch)
tree984f6f4a2c751bbe63cac8bfaec6100ff7fcfac2 /video/out/opengl/context.h
parent2a5b61244f55f4f5644ce21c3d03ff2ac8cba751 (diff)
downloadmpv-ef0b2e33b1cc8d064f64b864443bf1c233691508.tar.bz2
mpv-ef0b2e33b1cc8d064f64b864443bf1c233691508.tar.xz
vo_opengl: angle: new opengl flag to control DirectComposition
On some systems DirectComposition might behave poorly. Add an opengl suboption flag 'dcomposition' (default=yes) which can disable it.
Diffstat (limited to 'video/out/opengl/context.h')
-rw-r--r--video/out/opengl/context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/context.h b/video/out/opengl/context.h
index a546e00be0..505c51168a 100644
--- a/video/out/opengl/context.h
+++ b/video/out/opengl/context.h
@@ -32,6 +32,7 @@ enum {
VOFLAG_GL_DEBUG = 1 << 2, // Hint to request debug OpenGL context
VOFLAG_ALPHA = 1 << 3, // Hint to request alpha framebuffer
VOFLAG_SW = 1 << 4, // Hint to accept a software GL renderer
+ VOFLAG_ANGLE_DCOMP = 1 << 5, // Whether DirectComposition is allowed
};
extern const int mpgl_preferred_gl_versions[];