You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
src/libandroid/native_window.c: the part that should go in libEGL_bio: intercept eglGetProcAddress so we can stub extensions
This commit is contained in:
@@ -375,6 +375,14 @@ EGLBoolean bionic_eglPresentationTimeANDROID(EGLDisplay dpy, EGLSurface surface,
|
||||
return EGL_TRUE;
|
||||
}
|
||||
|
||||
void (* bionic_eglGetProcAddress(char const *procname))(void)
|
||||
{
|
||||
if(__unlikely__(!strcmp(procname, "eglPresentationTimeANDROID")))
|
||||
return bionic_eglPresentationTimeANDROID;
|
||||
|
||||
return eglGetProcAddress(procname);
|
||||
}
|
||||
|
||||
EGLDisplay bionic_eglGetDisplay(NativeDisplayType native_display)
|
||||
{
|
||||
// XXX - we can't use pbuffers with wayland EGLDisplay, for now one has to use an env to bypass
|
||||
|
||||
Reference in New Issue
Block a user