[vlc-commits] [Git][videolan/vlc][master] libplacebo: opengl: forward get_proc_address
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Mon Aug 22 21:33:30 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
bbf9918e by Niklas Haas at 2022-08-22T21:19:28+00:00
libplacebo: opengl: forward get_proc_address
This fixes GL function loading on some platforms, since the libplacebo
built-in loader is rather rudimentary.
- - - - -
1 changed file:
- modules/video_output/libplacebo/instance_opengl.c
Changes:
=====================================
modules/video_output/libplacebo/instance_opengl.c
=====================================
@@ -87,6 +87,14 @@ static const struct vlc_placebo_operations instance_opts =
.release_current = ReleaseCurrent,
};
+#if PL_API_VER >= 215
+static pl_voidfunc_t get_proc_addr_wrapper(void *ctx, const char *procname)
+{
+ vlc_gl_t *gl = ctx;
+ return gl->ops->get_proc_address(gl, procname);
+}
+#endif
+
static int InitInstance(vlc_placebo_t *pl, const vout_display_cfg_t *cfg)
{
vlc_placebo_system_t *sys = pl->sys =
@@ -108,6 +116,10 @@ static int InitInstance(vlc_placebo_t *pl, const vout_display_cfg_t *cfg)
sys->opengl = pl_opengl_create(pl->log, &(struct pl_opengl_params) {
.allow_software = var_InheritBool(pl, "gl-allow-sw"),
.debug = true, // this only sets up the debug report callback
+#if PL_API_VER >= 215
+ .get_proc_addr_ex = get_proc_addr_wrapper,
+ .proc_ctx = sys->gl,
+#endif
});
vlc_gl_ReleaseCurrent (sys->gl);
if (!sys->opengl)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bbf9918e572c6b888a5e65a857bac196da17ddbf
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bbf9918e572c6b888a5e65a857bac196da17ddbf
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list