GLFW on RPi with OpenGL

I’m trying to use GLFW 3.2 on my RPi3 on Raspbian, where I enabled the experimental OpenGL support.

However, if I use OpenGL 3.2, I’m getting error messages about this version not being supported. GLX fails to initialize.

And if I use OpenGL 2.0, I’m getting a different error message saying that context profiles are only defined for 3.2 and higher.

Is there any examples of GLFW 3.2 working on a Raspberry Pi?

Should I switch to OpenGL ES?

RPi supports only up to OpenGL 2.0 and OpenGL ES 2.0. No 3.x or higher versions supported.
And if I’m not mistaken GLX context will work only if you use open-source vc4 GL driver, not the default Broadcom one.

1 Like

I’ve managed to get it working with OpenGL 2.1.

I had to add compatibility fixes for my shaders, to support #version 120

The changes are there

1 Like