From 5265ce05d5c0af15c897065673b1c887ca1f42ab Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 23 Nov 2023 21:37:07 +0000 Subject: [PATCH] use RTLD_DEFAULT --- src/render/Renderbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Renderbuffer.cpp b/src/render/Renderbuffer.cpp index 1205c7a7..0643904b 100644 --- a/src/render/Renderbuffer.cpp +++ b/src/render/Renderbuffer.cpp @@ -20,7 +20,7 @@ CRenderbuffer::CRenderbuffer(wlr_buffer* buffer, uint32_t format) : m_pWlrBuffer static EGLImageKHR (*PWLREGLCREATEIMAGEFROMDMABUF)(wlr_egl*, wlr_dmabuf_attributes*, bool*); static bool symbolFound = false; if (!symbolFound) { - PWLREGLCREATEIMAGEFROMDMABUF = reinterpret_cast(dlsym(nullptr, "wlr_egl_create_image_from_dmabuf")); + PWLREGLCREATEIMAGEFROMDMABUF = reinterpret_cast(dlsym(RTLD_DEFAULT, "wlr_egl_create_image_from_dmabuf")); symbolFound = true;