mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
gl/context: add opengl32.dll as a library to dlopen() on windows
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1165>
This commit is contained in:
parent
a983bea1a9
commit
f8510ae3c8
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ load_opengl_module (gpointer user_data)
|
|||
* Proper compilers will optimize away the strcmp */
|
||||
if (g_strcmp0 (G_MODULE_SUFFIX, "so") == 0)
|
||||
module_opengl = g_module_open ("libGL.so.1", G_MODULE_BIND_LAZY);
|
||||
else if (g_strcmp0 (G_MODULE_SUFFIX, "dll") == 0)
|
||||
module_opengl = g_module_open ("opengl32.dll", G_MODULE_BIND_LAZY);
|
||||
|
||||
/* This automatically handles the suffix and even .la files */
|
||||
if (!module_opengl)
|
||||
|
|
Loading…
Reference in a new issue