#include "EGLClientIface.h" #include "HostConnection.h" #include "GLEncoder.h" #include "GLES/gl.h" #include "GLES/glext.h" //XXX: fix this macro to get the context from fast tls path #define GET_CONTEXT gl_client_context_t * ctx = HostConnection::get()->glEncoder(); #include "gl_entry.cpp" //The functions table #include "gl_ftable.h" static EGLClient_eglInterface * s_egl = NULL; static EGLClient_glesInterface * s_gl = NULL; void * getProcAddress(const char * procname) { // search in GL function table for (int i=0; igetProcAddress = getProcAddress; s_gl->finish = finish; } return s_gl; }