mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
[608/906] add GST_GL_PLATFORM_ANY for choosing any platform
This commit is contained in:
parent
0c66b39861
commit
e47b04c460
3 changed files with 4 additions and 3 deletions
|
@ -302,8 +302,7 @@ gst_gl_display_thread_create_context (GstGLDisplay * display)
|
|||
|
||||
gst_gl_display_lock (display);
|
||||
display->gl_window =
|
||||
gst_gl_window_new (GST_GL_RENDERER_API_OPENGL,
|
||||
display->external_gl_context);
|
||||
gst_gl_window_new (GST_GL_RENDERER_API_ANY, display->external_gl_context);
|
||||
|
||||
if (!display->gl_window) {
|
||||
gst_gl_display_set_error (display, "Failed to create gl window");
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <gst/video/video.h>
|
||||
|
||||
#include "gstglwindow.h"
|
||||
#include "gstglrenderer.h"
|
||||
#include "gstglshader.h"
|
||||
#include "gstglupload.h"
|
||||
#include "gstgldownload.h"
|
||||
|
@ -261,7 +262,7 @@ gboolean gst_gl_display_gen_shader (GstGLDisplay * display,
|
|||
const gchar * shader_fragment_source, GstGLShader ** shader);
|
||||
void gst_gl_display_del_shader (GstGLDisplay * display, GstGLShader * shader);
|
||||
|
||||
void gst_gl_display_set_window_id (GstGLDisplay * display, gulong window_id);
|
||||
void gst_gl_display_set_window_id (GstGLDisplay * display, guintptr window_id);
|
||||
void gst_gl_display_set_client_reshape_callback (GstGLDisplay * display,
|
||||
CRCB cb);
|
||||
void gst_gl_display_set_client_draw_callback (GstGLDisplay * display, CDCB cb);
|
||||
|
|
|
@ -67,6 +67,7 @@ typedef enum {
|
|||
GST_GL_RENDERER_API_GLES2 = 41,
|
||||
GST_GL_RENDERER_API_GLES3 = 42,
|
||||
|
||||
GST_GL_RENDERER_API_ANY = 254,
|
||||
GST_GL_RENDERER_API_LAST = 255
|
||||
} GstGLRendererAPI;
|
||||
|
||||
|
|
Loading…
Reference in a new issue