mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-11 22:49:48 +01:00
use RTLD_DEFAULT
This commit is contained in:
parent
22b78adf53
commit
5265ce05d5
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ CRenderbuffer::CRenderbuffer(wlr_buffer* buffer, uint32_t format) : m_pWlrBuffer
|
||||||
static EGLImageKHR (*PWLREGLCREATEIMAGEFROMDMABUF)(wlr_egl*, wlr_dmabuf_attributes*, bool*);
|
static EGLImageKHR (*PWLREGLCREATEIMAGEFROMDMABUF)(wlr_egl*, wlr_dmabuf_attributes*, bool*);
|
||||||
static bool symbolFound = false;
|
static bool symbolFound = false;
|
||||||
if (!symbolFound) {
|
if (!symbolFound) {
|
||||||
PWLREGLCREATEIMAGEFROMDMABUF = reinterpret_cast<EGLImageKHR (*)(wlr_egl*, wlr_dmabuf_attributes*, bool*)>(dlsym(nullptr, "wlr_egl_create_image_from_dmabuf"));
|
PWLREGLCREATEIMAGEFROMDMABUF = reinterpret_cast<EGLImageKHR (*)(wlr_egl*, wlr_dmabuf_attributes*, bool*)>(dlsym(RTLD_DEFAULT, "wlr_egl_create_image_from_dmabuf"));
|
||||||
|
|
||||||
symbolFound = true;
|
symbolFound = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue