[BOX32][WRAPPER] Hacked some support for libGLX_nvidia.so.0

This commit is contained in:
ptitSeb 2024-10-13 17:43:51 +02:00
parent 1936052e79
commit 59ba2fc7ab
2 changed files with 9 additions and 1 deletions

View File

@ -19,6 +19,7 @@ GO("ld-linux.so.2", ldlinux)
GO("libGL.so", libgl) GO("libGL.so", libgl)
GO("libGL.so.1", libgl) GO("libGL.so.1", libgl)
GO("libGLX_nvidia.so.0", libgl)
GO("libGLU.so.1", libglu) GO("libGLU.so.1", libglu)
GO("libSDL-1.2.so.0", sdl1) GO("libSDL-1.2.so.0", sdl1)
GO("libSDL2-2.0.so.0", sdl2) GO("libSDL2-2.0.so.0", sdl2)

View File

@ -889,7 +889,14 @@ static void* find_glVDPAUUnmapSurfacesNV_Fct(void* fct)
#undef SUPER #undef SUPER
#define PRE_INIT if(box64_libGL) {lib->w.lib = dlopen(box64_libGL, RTLD_LAZY | RTLD_GLOBAL); lib->path = strdup(box64_libGL);} else #define PRE_INIT \
if(box64_libGL) { \
lib->w.lib = dlopen(box64_libGL, RTLD_LAZY | RTLD_GLOBAL); \
lib->path = strdup(box64_libGL); \
} else if(strstr(lib->name, "libGLX_nvidia.so.0")) { \
lib->w.lib = dlopen("libGLX_nvidia.so.0", RTLD_LAZY | RTLD_GLOBAL); \
if(lib->w.lib) lib->path = strdup("libGLX_nvidia.so.0"); \
}
#define CUSTOM_INIT \ #define CUSTOM_INIT \
my_lib = lib; \ my_lib = lib; \
lib->w.priv = dlsym(lib->w.lib, "glXGetProcAddress"); \ lib->w.priv = dlsym(lib->w.lib, "glXGetProcAddress"); \