After the cmake 3.0 rebuild glad was transitioned to a static library. This lead to the glad symbols being uninitialized and crashes when they are used in some cases.
@@ -21,6 +21,7 @@
#include <obs-module.h>
#include <obs-nix-platform.h>
+#include <glad/glad.h>
#include <pipewire/pipewire.h>
#include "screencast-portal.h"
@@ -34,6 +35,10 @@ MODULE_EXPORT const char *obs_module_description(void)
bool obs_module_load(void)
{
+ obs_enter_graphics();
+ gladLoadGL();
+ obs_leave_graphics();
+
pw_init(NULL, NULL);
screencast_portal_load();