CGLGetCurrentContext not declared

Hey Jules, just pulled down the latest modules tip and I’m getting a build error “CGLGetCurrentContext was not declared in this scope”.

In juce_mac_OpenGLComponent.mm

bool OpenGLHelpers::isContextActive() { return CGLGetCurrentContext() != 0; }

I believe it’s found in CGLCurrent.h but I don’t see it being included in juce_opengl.h

#elif JUCE_MAC #include <OpenGL/gl.h> #include "OpenGL/glext.h"

It’s been working ok for me… Are you building against an old SDK version?

Sorry I should have checked and noted that. I’m on Snow Leopard building against 10.5 SDK. 10.6 indeed works fine.