mirror of https://github.com/mpv-player/mpv
vo_gpu: hwdec_drmprime_drm: don't crash for non-GL contexts
Using vulkan with --hwdec crashed because of this.
This commit is contained in:
parent
b0d0bc5700
commit
9ed8ca2529
|
@ -205,6 +205,9 @@ static int init(struct ra_hwdec *hw)
|
|||
struct priv *p = hw->priv;
|
||||
int drm_overlay;
|
||||
|
||||
if (!ra_is_gl(hw->ra))
|
||||
return -1;
|
||||
|
||||
p->log = hw->log;
|
||||
|
||||
void *tmp = talloc_new(NULL);
|
||||
|
|
Loading…
Reference in New Issue