Commits on Source (2)
-
Use the symbols from the vlc_gl_t instance for OpenGL instead of linking the platform OpenGL library. This effectively decouples the glspectrum visualization from the underlying OpenGL implementation, allowing alternative OpenGL implementation or function wrapper to be used with it, and simplifying the linkage of the plugin on every platforms. Thanks to this decoupling, it's now possible to use the visualization through OpenGL video callbacks in VLC. Fixes #22520
bd7eefb7 -
There is no need to disable and enable the context between each rendering. Since we own both the context and the thread, we can just keep it as current until the thread is closed, simplifying the already missing error handling.
bb7246ef