diff options
Diffstat (limited to 'video/out/opengl/hwdec_d3d11egl.c')
-rw-r--r-- | video/out/opengl/hwdec_d3d11egl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index 28c5f27bf6..c78d9e9b0d 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -23,6 +23,8 @@ #include <EGL/egl.h> #include <EGL/eglext.h> +#include "angle_dynamic.h" + #include "common/common.h" #include "osdep/timer.h" #include "osdep/windows_utils.h" @@ -147,6 +149,9 @@ static void destroy(struct gl_hwdec *hw) static int create(struct gl_hwdec *hw) { + if (!angle_load()) + return -1; + EGLDisplay egl_display = eglGetCurrentDisplay(); if (!egl_display) return -1; |