diff options
Diffstat (limited to 'video/out/opengl/context_rpi.c')
-rw-r--r-- | video/out/opengl/context_rpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/context_rpi.c b/video/out/opengl/context_rpi.c index 1b81e6a460..fbd9721b89 100644 --- a/video/out/opengl/context_rpi.c +++ b/video/out/opengl/context_rpi.c @@ -241,13 +241,13 @@ static bool rpi_init(struct ra_ctx *ctx) struct ra_gl_ctx_params params = { .swap_buffers = rpi_swap_buffers, - .native_display_type = "MPV_RPI_WINDOW", - .native_display = p->win_params, }; if (!ra_gl_ctx_init(ctx, &p->gl, params)) goto fail; + ra_add_native_resource(ctx->ra, "MPV_RPI_WINDOW", p->win_params); + ra_gl_ctx_resize(ctx->swapchain, ctx->vo->dwidth, ctx->vo->dheight, 0); return true; |