diff options
-rw-r--r-- | src/waffle/cgl/cgl_platform.m | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/waffle/cgl/cgl_platform.m b/src/waffle/cgl/cgl_platform.m index ee3a23b..fa82041 100644 --- a/src/waffle/cgl/cgl_platform.m +++ b/src/waffle/cgl/cgl_platform.m @@ -148,11 +148,13 @@ cgl_make_current(struct wcore_platform *wc_self, } static void* -cgl_get_proc_address(struct wcore_platform *wc_self, - const char *name) +cgl_get_proc_address(struct wcore_platform *wc_self, const char *name) { - // There is no CGLGetProcAddress. - return NULL; + // There is no CGLGetProcAddress. However, Waffle follows the principle of + // least surprise here. The only supported API on CGL is OpenGL, so assume + // the user called waffle_get_proc_address() to obtain an OpenGL function + // pointer. + return cgl_dl_sym(wc_self, WAFFLE_DL_OPENGL, name); } static const struct wcore_platform_vtbl cgl_platform_vtbl = { |