glwindow/win32: Accept both win32 and egl display

EGL would be the case where we use ANGLE.
This commit is contained in:
Seungha Yang 2020-02-18 20:09:19 +09:00
parent 929c17e6cc
commit 6531037533

View file

@ -97,8 +97,8 @@ gst_gl_window_win32_new (GstGLDisplay * display)
{
GstGLWindowWin32 *window;
if ((gst_gl_display_get_handle_type (display) & GST_GL_DISPLAY_TYPE_WIN32) ==
0)
if ((gst_gl_display_get_handle_type (display) &
(GST_GL_DISPLAY_TYPE_WIN32 | GST_GL_DISPLAY_TYPE_EGL)) == 0)
/* we require an win32 display to create win32 windows */
return NULL;