diff options
Diffstat (limited to 'video/out/opengl/context_dxinterop.c')
-rw-r--r-- | video/out/opengl/context_dxinterop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/opengl/context_dxinterop.c b/video/out/opengl/context_dxinterop.c index d4d3b874d6..3ebdfbeaa0 100644 --- a/video/out/opengl/context_dxinterop.c +++ b/video/out/opengl/context_dxinterop.c @@ -148,7 +148,7 @@ static int os_ctx_create(struct ra_ctx *ctx) } const char *wgl_exts = wglGetExtensionsStringARB(p->os_dc); - if (!strstr(wgl_exts, "WGL_ARB_create_context")) { + if (!gl_check_extension(wgl_exts, "WGL_ARB_create_context")) { MP_FATAL(ctx->vo, "The OpenGL driver does not support OpenGL 3.x\n"); goto fail; } @@ -555,10 +555,10 @@ static bool dxgl_init(struct ra_ctx *ctx) static const struct ra_swapchain_fns empty_swapchain_fns = {0}; struct ra_gl_ctx_params params = { .swap_buffers = dxgl_swap_buffers, - .flipped = true, .external_swapchain = &empty_swapchain_fns, }; + gl->flipped = true; if (!ra_gl_ctx_init(ctx, gl, params)) goto fail; @@ -598,6 +598,7 @@ static int dxgl_control(struct ra_ctx *ctx, int *events, int request, const struct ra_ctx_fns ra_ctx_dxgl = { .type = "opengl", .name = "dxinterop", + .description = "WGL rendering/Direct3D 9Ex presentation", .init = dxgl_init, .reconfig = dxgl_reconfig, .control = dxgl_control, |