summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/Loader.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-02-13 20:06:08 -0800
committerMathias Agopian <mathias@google.com>2012-02-13 20:23:15 -0800
commit7773c435bc5da8217433e1b242d3a6712a17b5f7 (patch)
tree596288e2e91fa94dc11db8fc738c3ba49dd16cdb /opengl/libs/EGL/Loader.cpp
parentada798b7ca7cabc255aa159964b64975e7fdb2df (diff)
downloadframeworks_native-7773c435bc5da8217433e1b242d3a6712a17b5f7.zip
frameworks_native-7773c435bc5da8217433e1b242d3a6712a17b5f7.tar.gz
frameworks_native-7773c435bc5da8217433e1b242d3a6712a17b5f7.tar.bz2
EGLConfig is now not remaped to an internal EGLConfig
this is possible now that we support only a single EGL implementation. this allows a large code simplification. Change-Id: I7a6b9db4c5d60f4407c6061e7a68729af63d5242
Diffstat (limited to 'opengl/libs/EGL/Loader.cpp')
-rw-r--r--opengl/libs/EGL/Loader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index 4ccb21e..0b1016c 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -198,7 +198,7 @@ void Loader::init_api(void* dso,
__eglMustCastToProperFunctionPointerType* curr,
getProcAddressType getProcAddress)
{
- const size_t SIZE = 256;
+ const ssize_t SIZE = 256;
char scrap[SIZE];
while (*api) {
char const * name = *api;
@@ -303,14 +303,14 @@ void *Loader::load_driver(const char* kind, const char *tag,
if (mask & GLESv1_CM) {
init_api(dso, gl_names,
(__eglMustCastToProperFunctionPointerType*)
- &cnx->hooks[GLESv1_INDEX]->gl,
+ &cnx->hooks[egl_connection_t::GLESv1_INDEX]->gl,
getProcAddress);
}
if (mask & GLESv2) {
init_api(dso, gl_names,
(__eglMustCastToProperFunctionPointerType*)
- &cnx->hooks[GLESv2_INDEX]->gl,
+ &cnx->hooks[egl_connection_t::GLESv2_INDEX]->gl,
getProcAddress);
}