mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-07 06:55:53 +01:00
Update main.cpp
This commit is contained in:
parent
de3789bfb4
commit
f710595e44
2
main.cpp
2
main.cpp
@ -6,6 +6,7 @@
|
||||
#include <sys/mman.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <dlfcn.h> // 新增:修复 dlsym 和 RTLD_DEFAULT 报错
|
||||
#include <EGL/egl.h>
|
||||
#include <GLES3/gl3.h>
|
||||
#include "dobby.h"
|
||||
@ -97,7 +98,6 @@ void* init_thread(void*) {
|
||||
LOGI("Found libEGL.so at: %p", (void*)egl_base);
|
||||
|
||||
// 2. 查找 eglSwapBuffers 符号地址
|
||||
// 也可以直接用 dlsym(RTLD_NEXT, "eglSwapBuffers")
|
||||
void* sym_eglSwapBuffers = dlsym(RTLD_DEFAULT, "eglSwapBuffers");
|
||||
if (!sym_eglSwapBuffers) {
|
||||
LOGE("Error: Cannot find eglSwapBuffers symbol!");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user