// Get the current rendering context. EGLContext eglGetCurrentContext() { EGL_API_ENTRY(""); ContextPtr context = GetContext(); if (context == NULL) { return EGL_NO_CONTEXT; } return context->GetKey(); }