summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_angle.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/context_angle.c')
-rw-r--r--video/out/opengl/context_angle.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/video/out/opengl/context_angle.c b/video/out/opengl/context_angle.c
index 2784026d1d..3a70c09c7e 100644
--- a/video/out/opengl/context_angle.c
+++ b/video/out/opengl/context_angle.c
@@ -18,6 +18,7 @@
#include <windows.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
+#include <EGL/eglext_angle.h>
#include <d3d11.h>
#include <dxgi1_2.h>
#include <dwmapi.h>
@@ -53,7 +54,7 @@ struct angle_opts {
int d3d11_warp;
int d3d11_feature_level;
int egl_windowing;
- int flip;
+ bool flip;
};
#define OPT_BASE_STRUCT struct angle_opts
@@ -76,9 +77,7 @@ const struct m_sub_options angle_conf = {
{"auto", -1},
{"no", 0},
{"yes", 1})},
- {"angle-flip", OPT_FLAG(flip)},
- {"angle-max-frame-latency", OPT_REPLACED("swapchain-depth")},
- {"angle-swapchain-length", OPT_REMOVED("controlled by --swapchain-depth")},
+ {"angle-flip", OPT_BOOL(flip)},
{0}
},
.defaults = &(const struct angle_opts) {
@@ -86,7 +85,7 @@ const struct m_sub_options angle_conf = {
.d3d11_warp = -1,
.d3d11_feature_level = D3D_FEATURE_LEVEL_11_0,
.egl_windowing = -1,
- .flip = 1,
+ .flip = true,
},
.size = sizeof(struct angle_opts),
};
@@ -604,10 +603,10 @@ static bool angle_init(struct ra_ctx *ctx)
};
struct ra_gl_ctx_params params = {
.swap_buffers = angle_swap_buffers,
- .flipped = p->flipped,
.external_swapchain = p->dxgi_swapchain ? &dxgi_swapchain_fns : NULL,
};
+ gl->flipped = p->flipped;
if (!ra_gl_ctx_init(ctx, gl, params))
goto fail;
@@ -647,6 +646,7 @@ static int angle_control(struct ra_ctx *ctx, int *events, int request, void *arg
const struct ra_ctx_fns ra_ctx_angle = {
.type = "opengl",
.name = "angle",
+ .description = "Win32/ANGLE (via Direct3D)",
.init = angle_init,
.reconfig = angle_reconfig,
.control = angle_control,