Build on Mac OS X 10.9 (10.9.1) generates warnings for deprecated Apple GL functions.
Xcode Version 5.0.2 (5A3005)
glewinfo.c
glewinfo.c:10583:1: 'AGLContext' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10588:3: 'AGLPixelFormat' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10593:8: 'aglChoosePixelFormat' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10595:9: 'aglCreateContext' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10596:38: 'aglGetError' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10597:3: 'aglDestroyPixelFormat' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10599:10: 'aglGetCurrentContext' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10600:19: 'aglSetCurrentContext' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10610:3: 'aglSetCurrentContext' is deprecated: first deprecated in OS X 10.9
glewinfo.c:10611:20: 'aglDestroyContext' is deprecated: first deprecated in OS X 10.9
visualinfo.c
visualinfo.c:63:3: 'AGLContext' is deprecated: first deprecated in OS X 10.9
visualinfo.c:585:24: Unused parameter 'ctx'
visualinfo.c:1050:3: 'AGLPixelFormat' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1057:8: 'aglChoosePixelFormat' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1059:14: 'aglCreateContext' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1060:43: 'aglGetError' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1061:3: 'aglDestroyPixelFormat' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1063:15: 'aglGetCurrentContext' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1064:19: 'aglSetCurrentContext' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1071:3: 'aglSetCurrentContext' is deprecated: first deprecated in OS X 10.9
visualinfo.c:1072:25: 'aglDestroyContext' is deprecated: first deprecated in OS X 10.9
AGL is out, it seems that CGL is the new hot on OSX.
I believe I have a fix for this. How can I test that it works properly?
Also, there are some calls that are in comments that don't have direct translations to CGL. For example:
/*aglSetDrawable(ctx, GetWindowPort(wnd));*/
Should these be converted as well or just removed to avoid confusion?
I also noticed that the Makefile in glew accepts a System of darwin-x86_64, while the one in glew/auto accepts Darwin-x86_64. Would it be inappropriate to modify glew/auto/Makefile so it accepts the lowercase version in this change?
I have a solution for this in glewinfo, I guess visualinfo comes next.
These warnings are fixed in GLEW 1.13.0
Thanks for the report.