From d75f3b5e7886ec79714443a3b20eafca3f628340 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Tue, 8 Oct 2024 10:18:58 +0800 Subject: [PATCH] Add support for mobileglues --- src/main/cpp/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/cpp/main.c b/src/main/cpp/main.c index 1b5eab5..a25c283 100644 --- a/src/main/cpp/main.c +++ b/src/main/cpp/main.c @@ -23,7 +23,7 @@ void proc_init() { __android_log_print(ANDROID_LOG_FATAL, RENDERERNAME, "Cannot load system libEGL.so!"); - g_target_egl_func.eglGetProcAddress = dlsym(handle, "eglGetProcAddress"); + g_target_egl_func.eglGetProcAddress = _mglues_dlsym(handle, "eglGetProcAddress"); init_target_egl(); init_target_gles(); @@ -78,18 +78,18 @@ EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY glXGetProcAddress (c if (proc) return proc; else __android_log_print(ANDROID_LOG_VERBOSE, RENDERERNAME, - "UnImplemented function: %s(%s) @ prehook", __FUNCTION__, procname); + "Unimplemented function: %s(%s) @ prehook", __FUNCTION__, procname); //proc = eglGetProcAddress(procname); if (proc) return proc; else __android_log_print(ANDROID_LOG_VERBOSE, RENDERERNAME, - "UnImplemented function: %s(%s) @ system", __FUNCTION__, procname); + "Unimplemented function: %s(%s) @ system", __FUNCTION__, procname); proc = posthook(procname); if (!proc) __android_log_print(ANDROID_LOG_VERBOSE, RENDERERNAME, - "UnImplemented function: %s(%s) @ posthook", __FUNCTION__, procname); + "Unimplemented function: %s(%s) @ posthook", __FUNCTION__, procname); return proc; } @@ -102,7 +102,7 @@ GL_APICALL const GLubyte *GL_APIENTRY glGetString (GLenum name) { switch (name) { case GL_VENDOR: return "GL_VENDOR"; case GL_RENDERER: - return "GL_VENDOR"; + return "GL_RENDERER"; default: return "default"; }