mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Fix]: fix GLX GetProcAddress not exported properly
This commit is contained in:
@@ -25,6 +25,9 @@ find_library(GLSLANG_LIB glslang PATHS ${CMAKE_SOURCE_DIR}/libraries/arm64-v8a/)
|
||||
add_library(${CMAKE_PROJECT_NAME} SHARED
|
||||
MG/Init.cpp
|
||||
|
||||
# MG_GL/Implementations/GLX
|
||||
MG/MG_GL/Implementations/GLX/GLXFuncsDefinitions/GLXFuncsDefinitions.cpp
|
||||
|
||||
# MG_GL/Implementations/GL
|
||||
MG/MG_GL/Implementations/GL/GLFuncsDefinitions/GLFuncsDefinitions.cpp
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// Created by Swung 0x48 on 2025/6/20.
|
||||
//
|
||||
|
||||
#include "GLXFuncsDefinitions.h"
|
||||
|
||||
MG_EXPORT void* glXGetProcAddress(const char *name) {
|
||||
return MG_GL::GLX::GetProcAddress(name);
|
||||
}
|
||||
|
||||
MG_EXPORT void* glXGetProcAddressARB(const char *name) {
|
||||
return MG_GL::GLX::GetProcAddressARB(name);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//
|
||||
// Created by Swung 0x48 on 2025/6/20.
|
||||
//
|
||||
|
||||
#ifndef FOLD_CRAFT_LAUNCHER_GLXFUNCSDEFINITIONS_H
|
||||
#define FOLD_CRAFT_LAUNCHER_GLXFUNCSDEFINITIONS_H
|
||||
|
||||
#include "../../../../Includes.h"
|
||||
|
||||
#endif //FOLD_CRAFT_LAUNCHER_GLXFUNCSDEFINITIONS_H
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
namespace MG_GL::GLX {
|
||||
void* GetProcAddress(const char *name) {
|
||||
MG_Util::Debug::LogD("glXGetProcAddress(\"%s\")", name);
|
||||
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
||||
|
||||
if (!proc) {
|
||||
|
||||
Reference in New Issue
Block a user