diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index 5aeb4df555..fb5af1005f 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -826,7 +826,7 @@ gst_gl_context_egl_create_context (GstGLContext * context, window_handle = gst_gl_window_get_window_handle (window); if (window_handle) { -#if GST_GL_HAVE_WINDOW_WINRT +#if GST_GL_HAVE_WINDOW_WINRT && defined (EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER) const EGLint attrs[] = { /* EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER is an optimization that can * have large performance benefits on mobile devices. */ @@ -939,7 +939,7 @@ gst_gl_context_egl_activate (GstGLContext * context, gboolean activate) gst_object_unref (window); } if (handle && handle != egl->window_handle) { -#if GST_GL_HAVE_WINDOW_WINRT +#if GST_GL_HAVE_WINDOW_WINRT && defined (EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER) const EGLint attrs[] = { /* EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER is an optimization that can * have large performance benefits on mobile devices. */ diff --git a/gst-libs/gst/gl/egl/gstgldisplay_egl.c b/gst-libs/gst/gl/egl/gstgldisplay_egl.c index 31a097bf61..a8e5815b8d 100644 --- a/gst-libs/gst/gl/egl/gstgldisplay_egl.c +++ b/gst-libs/gst/gl/egl/gstgldisplay_egl.c @@ -196,11 +196,13 @@ gst_gl_display_egl_get_from_native (GstGLDisplayType type, guintptr display) * attributes if the hardware supports D3D11 Feature Level 10_0+. */ EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE, +#ifdef EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER /* EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER is an optimization * that can have large performance benefits on mobile devices. Its * syntax is subject to change, though. Please update your Visual * Studio templates if you experience compilation issues with it. */ EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER, EGL_TRUE, +#endif /* EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE is an option that * enables ANGLE to automatically call the IDXGIDevice3::Trim method