summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/Loader.cpp
diff options
context:
space:
mode:
authorMichael Chock <mchock@nvidia.com>2014-01-27 08:14:33 -0800
committerRobert Tray <rtray@nvidia.com>2014-03-27 17:28:40 -0600
commitc0ec5e2333b6350480851b8b48f000c78ea3f88a (patch)
tree11865a6b5e89845b47661aef94f46f30a111cd01 /opengl/libs/EGL/Loader.cpp
parentb1a8c016371282a3cd3b113e6b2c0310372babf2 (diff)
downloadframeworks_native-c0ec5e2333b6350480851b8b48f000c78ea3f88a.zip
frameworks_native-c0ec5e2333b6350480851b8b48f000c78ea3f88a.tar.gz
frameworks_native-c0ec5e2333b6350480851b8b48f000c78ea3f88a.tar.bz2
Expose core EGL entry points to eglGetProcAddress
Required behavior for EGL_KHR_get_all_proc_addresses. Change-Id: I1e6209ef3cb9f2fa6f22808b077c35139d4cb814
Diffstat (limited to 'opengl/libs/EGL/Loader.cpp')
-rw-r--r--opengl/libs/EGL/Loader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index e528831..1fcc048 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -188,12 +188,17 @@ void* Loader::open(egl_connection_t* cnx)
LOG_ALWAYS_FATAL_IF(!hnd, "couldn't find an OpenGL ES implementation");
#if defined(__LP64__)
+ cnx->libEgl = load_wrapper("/system/lib64/libEGL.so");
cnx->libGles2 = load_wrapper("/system/lib64/libGLESv2.so");
cnx->libGles1 = load_wrapper("/system/lib64/libGLESv1_CM.so");
#else
+ cnx->libEgl = load_wrapper("/system/lib/libEGL.so");
cnx->libGles2 = load_wrapper("/system/lib/libGLESv2.so");
cnx->libGles1 = load_wrapper("/system/lib/libGLESv1_CM.so");
#endif
+ LOG_ALWAYS_FATAL_IF(!cnx->libEgl,
+ "couldn't load system EGL wrapper libraries");
+
LOG_ALWAYS_FATAL_IF(!cnx->libGles2 || !cnx->libGles1,
"couldn't load system OpenGL ES wrapper libraries");