gl/context: add opengl32.dll as a library to dlopen() on windows
authorMatthew Waters <matthew@centricular.com>
Thu, 20 May 2021 12:50:23 +0000 (22:50 +1000)
committerMatthew Waters <matthew@centricular.com>
Fri, 21 May 2021 04:12:11 +0000 (14:12 +1000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1165>

gst-libs/gst/gl/gstglcontext.c

index 88e1020..06215d8 100644 (file)
@@ -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)