static gboolean gst_gl_window_wayland_egl_create_context (GstGLWindowWaylandEGL
* window_egl, GstGLAPI gl_api, guintptr external_gl_context,
GError ** error);
-GstGLAPI gst_gl_window_wayland_egl_get_gl_api (GstGLWindow * window);
+static GstGLAPI gst_gl_window_wayland_egl_get_gl_api (GstGLWindow * window);
+static gpointer gst_gl_window_wayland_egl_get_proc_address (GstGLWindow *
+ window, const gchar * name);
static void gst_gl_window_wayland_egl_finalize (GObject * object);
-
-
static void
pointer_handle_enter (void *data, struct wl_pointer *pointer, uint32_t serial,
struct wl_surface *surface, wl_fixed_t sx_w, wl_fixed_t sy_w)
GST_DEBUG_FUNCPTR (gst_gl_window_wayland_egl_send_message);
window_class->get_gl_api =
GST_DEBUG_FUNCPTR (gst_gl_window_wayland_egl_get_gl_api);
+ window_class->get_proc_address =
+ GST_DEBUG_FUNCPTR (gst_gl_window_wayland_egl_get_proc_address);
object_class->finalize = gst_gl_window_wayland_egl_finalize;
}
return (guintptr) GST_GL_WINDOW_WAYLAND_EGL (window)->egl_context;
}
-GstGLAPI
+static GstGLAPI
gst_gl_window_wayland_egl_get_gl_api (GstGLWindow * window)
{
return GST_GL_API_GLES2;
gst_gl_window_send_message (window, (GstGLWindowCB) draw_cb, &draw_data);
}
+static gpointer
+gst_gl_window_wayland_egl_get_proc_address (GstGLWindow * window,
+ const gchar * name)
+{
+ gpointer result;
+
+ if (!(result = eglGetProcAddress (name))) {
+ result = gst_gl_window_default_get_proc_address (window, name);
+ }
+
+ return result;
+}
+
const gchar *
WlEGLErrorString ()
{
static gboolean gst_gl_window_x11_egl_choose_format (GstGLWindowX11 *
window_x11, GError ** error);
GstGLAPI gst_gl_window_x11_egl_get_gl_api (GstGLWindow * window);
+static gpointer gst_gl_window_x11_egl_get_proc_address (GstGLWindow * window,
+ const gchar * name);
static void
gst_gl_window_x11_egl_class_init (GstGLWindowX11EGLClass * klass)
window_class->get_gl_api =
GST_DEBUG_FUNCPTR (gst_gl_window_x11_egl_get_gl_api);
+ window_class->get_proc_address =
+ GST_DEBUG_FUNCPTR (gst_gl_window_x11_egl_get_proc_address);
}
static void
{
GstGLWindowX11EGL *window_egl = GST_GL_WINDOW_X11_EGL (window);
- return window_egl->gl_api ? window_egl->
- gl_api : GST_GL_API_GLES2 | GST_GL_API_OPENGL;
+ return window_egl->
+ gl_api ? window_egl->gl_api : GST_GL_API_GLES2 | GST_GL_API_OPENGL;
+}
+
+static gpointer
+gst_gl_window_x11_egl_get_proc_address (GstGLWindow * window,
+ const gchar * name)
+{
+ gpointer result;
+
+ if (!(result = eglGetProcAddress (name))) {
+ result = gst_gl_window_default_get_proc_address (window, name);
+ }
+
+ return result;
}
const gchar *
static gboolean gst_gl_window_x11_glx_choose_format (GstGLWindowX11 *
window_x11, GError ** error);
GstGLAPI gst_gl_window_x11_glx_get_gl_api (GstGLWindow * window);
+static gpointer gst_gl_window_x11_glx_get_proc_address (GstGLWindow * window,
+ const gchar * name);
static void
gst_gl_window_x11_glx_class_init (GstGLWindowX11GLXClass * klass)
window_class->get_gl_api =
GST_DEBUG_FUNCPTR (gst_gl_window_x11_glx_get_gl_api);
+ window_class->get_proc_address =
+ GST_DEBUG_FUNCPTR (gst_gl_window_x11_glx_get_proc_address);
}
static void
{
return GST_GL_API_OPENGL;
}
+
+static gpointer
+gst_gl_window_x11_glx_get_proc_address (GstGLWindow * window,
+ const gchar * name)
+{
+ gpointer result;
+
+ if (!(result = glXGetProcAddressARB ((const GLubyte *) name))) {
+ result = gst_gl_window_default_get_proc_address (window, name);
+ }
+
+ return result;
+}