[gtk/gst.gl.win32: 19/20] gtkgstsink.c: Call gst_gl_display_filter_gl_api() always on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gst.gl.win32: 19/20] gtkgstsink.c: Call gst_gl_display_filter_gl_api() always on Windows
- Date: Fri, 21 May 2021 04:54:08 +0000 (UTC)
commit ed7be6f88bb68a6f28e4b84e78f2b9e4e83848d9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu May 20 16:52:39 2021 +0800
gtkgstsink.c: Call gst_gl_display_filter_gl_api() always on Windows
This streamlines the code and makes sure that we have the proper GL API for
GstGL seutp.
modules/media/gtkgstsink.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c
index 549706767b..746f02b327 100644
--- a/modules/media/gtkgstsink.c
+++ b/modules/media/gtkgstsink.c
@@ -510,13 +510,10 @@ gtk_gst_sink_initialize_gl (GtkGstSink *self)
{
gpointer display_ptr = gdk_win32_display_get_egl_display (display);
self->gst_display = GST_GL_DISPLAY (gst_gl_display_egl_new_with_egl_display (display_ptr));
-
- /* limit GL API to gles2 if that is what we got from asking GdkGLContext */
- if (gl_api == GST_GL_API_GLES2)
- gst_gl_display_filter_gl_api (self->gst_display, GST_GL_API_GLES2);
}
#endif
+ gst_gl_display_filter_gl_api (self->gst_display, gl_api);
self->gst_app_context = gst_gl_context_new_wrapped (self->gst_display, gl_handle, platform,
gl_api);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]