mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-10 08:35:58 +00:00
glcontext/egl: Fix build with upstream ANGLE
ANGLE_surface_d3d_render_to_back_buffer extension is only available with Microsoft fork of ANGLE. Note that Microsoft's ANGLE repository has been deprecated.
This commit is contained in:
parent
d176f67d33
commit
4a006d6951
|
@ -826,7 +826,7 @@ gst_gl_context_egl_create_context (GstGLContext * context,
|
||||||
window_handle = gst_gl_window_get_window_handle (window);
|
window_handle = gst_gl_window_get_window_handle (window);
|
||||||
|
|
||||||
if (window_handle) {
|
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[] = {
|
const EGLint attrs[] = {
|
||||||
/* EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER is an optimization that can
|
/* EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER is an optimization that can
|
||||||
* have large performance benefits on mobile devices. */
|
* have large performance benefits on mobile devices. */
|
||||||
|
@ -939,7 +939,7 @@ gst_gl_context_egl_activate (GstGLContext * context, gboolean activate)
|
||||||
gst_object_unref (window);
|
gst_object_unref (window);
|
||||||
}
|
}
|
||||||
if (handle && handle != egl->window_handle) {
|
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[] = {
|
const EGLint attrs[] = {
|
||||||
/* EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER is an optimization that can
|
/* EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER is an optimization that can
|
||||||
* have large performance benefits on mobile devices. */
|
* have large performance benefits on mobile devices. */
|
||||||
|
|
|
@ -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+. */
|
* attributes if the hardware supports D3D11 Feature Level 10_0+. */
|
||||||
EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE,
|
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
|
/* EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER is an optimization
|
||||||
* that can have large performance benefits on mobile devices. Its
|
* that can have large performance benefits on mobile devices. Its
|
||||||
* syntax is subject to change, though. Please update your Visual
|
* syntax is subject to change, though. Please update your Visual
|
||||||
* Studio templates if you experience compilation issues with it. */
|
* Studio templates if you experience compilation issues with it. */
|
||||||
EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER, EGL_TRUE,
|
EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER, EGL_TRUE,
|
||||||
|
#endif
|
||||||
|
|
||||||
/* EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE is an option that
|
/* EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE is an option that
|
||||||
* enables ANGLE to automatically call the IDXGIDevice3::Trim method
|
* enables ANGLE to automatically call the IDXGIDevice3::Trim method
|
||||||
|
|
Loading…
Reference in a new issue