Hi, I'm trying to port a game using PVR_PSP2, which loads GL functions dynamically but found eglGetProcAddress didn't return right address. The situation is:
init_pvr_psp2();
init_egl();
auto addr = reinterpret_cast<uint32_t>(eglGetProcAddress("glGetError"));
log("glGetError addr = %x, error = %x\n", addr, eglGetError());
// prints: glGetError addr = 0, error = 3000
log("glGetError = %d\n", glGetError());
// prints: glGetError = 0, might indicate that GLES module are loaded
addr = reinterpret_cast<uint32_t>(eglGetProcAddress("glGetError"));
log("glGetError addr = %x, error = %x\n", addr, eglGetError());
// prints: glGetError addr = 0, error = 3000
The complete test code can be found here. Additionally, loading libGLESv1_CM.suprx manually in init_pvr_psp2
would solve this problem. But I thought this might not be the correct way to use it. Anyway, thanks for developing this excellent repo! Any help will be appreciated.