fix: add missing init_target_gles() decl, remove

duplicate glXGetProcAddress implementation
This commit is contained in:
Swung0x48 2025-01-28 12:34:03 +08:00
parent a8bad9ec73
commit a8f7727ba5
3 changed files with 8 additions and 6 deletions

View File

@ -70,4 +70,6 @@ GLAPI GLAPIENTRY type name(__VA_ARGS__) { \
#define LOAD_EGL(name) LOAD_LIB(egl, name)
void init_target_gles();
#endif // _MOBILEGLUES_LOADER_H_

View File

@ -6,7 +6,7 @@
#define FOLD_CRAFT_LAUNCHER_GLES3_H
#include <GLES3/gl32.h>
#include "GL/gl.h"
#include "gl/gl.h"
struct es3_functions_t
{

View File

@ -493,11 +493,11 @@ __eglMustCastToProperFunctionPointerType posthook(const char *procname) {
return NULL;
}
EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY glXGetProcAddress (const char *procname) {
__android_log_print(ANDROID_LOG_VERBOSE, RENDERERNAME,
"%s @ %s(%s)", RENDERERNAME, __FUNCTION__, procname);
return eglGetProcAddress(procname);
}
//EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY glXGetProcAddress (const char *procname) {
// __android_log_print(ANDROID_LOG_VERBOSE, RENDERERNAME,
// "%s @ %s(%s)", RENDERERNAME, __FUNCTION__, procname);
// return eglGetProcAddress(procname);
//}
EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname) {
__android_log_print(ANDROID_LOG_VERBOSE, RENDERERNAME,