Disable CoreGraphics via LookAndFeel?

In order for LayerEffects to work, the relevant ComponentPeer MUST use the software renderer. The problem is that when CoreGraphics is turned on, JUCE’s NSComponentPeer never calls the LookAndFeel to create the context.

This means that anyone who wants to use my LayerGraphics code has to change their AppConfig.h or else get obscure errors. Would it be possible to design a way to adjust the usage of CoreGraphics at runtime instead of compile time?

You can change it at runtime with the ComponentPeer::setCurrentRenderingEngine method. Same way it’s done in the juce demo.