CGLGetCurrentContext not declared


#1

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"


#2

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


#3

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