mirror of https://github.com/mpv-player/mpv
video: fix use of possibly-NULL pointer in drm_egl_init
This commit is contained in:
parent
5129d777a6
commit
eb46d46e73
|
@ -395,6 +395,7 @@ static bool drm_egl_init(struct ra_ctx *ctx)
|
|||
|
||||
p->drm_params.fd = p->kms->fd;
|
||||
p->drm_params.crtc_id = p->kms->crtc_id;
|
||||
if (p->kms->atomic_context)
|
||||
p->drm_params.atomic_request = p->kms->atomic_context->request;
|
||||
struct ra_gl_ctx_params params = {
|
||||
.swap_buffers = drm_egl_swap_buffers,
|
||||
|
|
Loading…
Reference in New Issue