summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Macnak <natsu@google.com>2021-03-02 20:03:02 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-03-02 20:03:02 +0000
commite00110e131056db6e05b403f55e8952508f5be39 (patch)
treeef1ae75e4bcaa9ab5bdd0608cc49b3cb3b922783
parent33cc3e5eae280873ac9fd9bbabba62d0a126222e (diff)
parent20fc78f56f0de431b55e2f93be6f258ef413c347 (diff)
downloadnative-temp_RQ2A.210305.007.tar.gz
Merge "Load ANGLEResetDisplayPlatform via dlsym" am: 20fc78f56ftemp_RQ2A.210305.007
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1607133 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2f7cee6cdae4b16c5adeb7af751a591a939948e2
-rw-r--r--opengl/libs/EGL/egl_angle_platform.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl_angle_platform.cpp b/opengl/libs/EGL/egl_angle_platform.cpp
index f82c2a4ee7..6c07ad4cf0 100644
--- a/opengl/libs/EGL/egl_angle_platform.cpp
+++ b/opengl/libs/EGL/egl_angle_platform.cpp
@@ -130,8 +130,7 @@ bool initializeAnglePlatform(EGLDisplay dpy) {
}
angleResetDisplayPlatform =
- reinterpret_cast<ResetDisplayPlatformFunc>(
- eglGetProcAddress("ANGLEResetDisplayPlatform"));
+ reinterpret_cast<ResetDisplayPlatformFunc>(dlsym(so, "ANGLEResetDisplayPlatform"));
PlatformMethods* platformMethods = nullptr;
if (!((angleGetDisplayPlatform)(dpy, g_PlatformMethodNames,