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:
Matthew Waters 2021-05-20 22:50:23 +10:00
parent a983bea1a9
commit f8510ae3c8

View file

@ -109,6 +109,8 @@ load_opengl_module (gpointer user_data)
* Proper compilers will optimize away the strcmp */ * Proper compilers will optimize away the strcmp */
if (g_strcmp0 (G_MODULE_SUFFIX, "so") == 0) if (g_strcmp0 (G_MODULE_SUFFIX, "so") == 0)
module_opengl = g_module_open ("libGL.so.1", G_MODULE_BIND_LAZY); 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 */ /* This automatically handles the suffix and even .la files */
if (!module_opengl) if (!module_opengl)