Index: mojo/public/c/gpu/MGL/mgl.h |
diff --git a/mojo/public/c/gpu/MGL/mgl.h b/mojo/public/c/gpu/MGL/mgl.h |
index 2633976ddbdcc82f3cc8147df3e14cd8e036320f..31efc08c1bb946e80b5257f4c8d8c5ff8882bf85 100644 |
--- a/mojo/public/c/gpu/MGL/mgl.h |
+++ b/mojo/public/c/gpu/MGL/mgl.h |
@@ -55,6 +55,14 @@ void MGLMakeCurrent(MGLContext context); |
// if there is none. |
MGLContext MGLGetCurrentContext(void); |
+// Returns GL function usable in any context that advertise the corresponding |
+// extension in their GL_EXTENSIONS string, or null for functions that the |
+// implementation does not support. The implementation only advertises GL |
+// functions. The return value must be cast to the proper function pointer type |
+// and calling convention before use. |
jamesr
2015/09/22 20:28:35
EGL has a type for the returned type that tries to
Petr Hosek
2015/09/22 23:31:26
I guess it might be useful in some cases, I change
|
+// |name| is the name of the GL function. |
+void* MGLGetProcAddress(const char* name); |
+ |
#ifdef __cplusplus |
} // extern "C" |
#endif |