File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ get_target_property(libdrm_include_directories Libdrm::Libdrm INTERFACE_INCLUDE_
44
55target_include_directories (obs-browser PRIVATE ${libdrm_include_directories} )
66
7- target_link_libraries (obs-browser PRIVATE CEF::Wrapper CEF::Library X11::X11 OBS::glad )
7+ target_link_libraries (obs-browser PRIVATE CEF::Wrapper CEF::Library X11::X11)
88set_target_properties (obs-browser PROPERTIES BUILD_RPATH "$ORIGIN/" INSTALL_RPATH "$ORIGIN/" )
99
1010target_sources (obs-browser PRIVATE drm-format.cpp drm-format.hpp)
Original file line number Diff line number Diff line change 5656#endif
5757
5858#if !defined(_WIN32) && !defined(__APPLE__)
59- #include < glad/glad.h>
6059#include " drm-format.hpp"
6160#endif
6261
@@ -717,10 +716,12 @@ static void check_hwaccel_support(void)
717716 const char *glVersion = NULL ;
718717
719718 obs_enter_graphics ();
720- gladLoadGL ();
721- glVersion = (const char *)glGetString (GL_VERSION);
719+ glVersion = gs_get_driver_version ();
722720 obs_leave_graphics ();
723721
722+ if (!glVersion)
723+ return ;
724+
724725 if (strstr (glVersion, " NVIDIA" ) != NULL ) {
725726 hwaccel = false ;
726727 blog (LOG_INFO,
You can’t perform that action at this time.
0 commit comments