I would like to use GLSL version 120 with OpenGL 2.1 on MacOS 10.12.6 to get a (kind of) ES2 compatible environment. I’ve tried configuring Cinder like this:
CINDER_APP( ShaderRendererApp, RendererGl( RendererGl::Options().version( 2, 1 ) ), prepareSettings )
but I always get an error compiling the version 120 shader:
VERTEX: ERROR: 0:1: '' : version '120' is not supported.
Any ideas on how to get GL 2.1 running on MacOS? Alternatively, maybe there’s some way to emulate iOS and run under true ES2? Or use Docker to run Linux with ES2?
So it appears OpenGL is running version 4.1 despite asking for version 2.1. Any idea why RendererGl wouldn’t provide a 2.1 context, even when explicitly turning off core profile?