OpenGL Stencil Buffer

Has anyone used the Stencil Buffer with the OpenGLSurface control in Xojo?

I’m struggling to find a decent example of how to use the stencil buffer.

Not to worry, just found my answer in the following thread (I need to set up the stencil with the Configure event)…

https://forum.xojo.com/30710-opengl-mac-init-context/0

Thanks Will, you are a genius!