Currently I get this error on macOS when I compile the byo_gui_gl example:
[ERROR] nice_plug::wrapper::util: thread 'main' panicked at 'ERROR: 0:1: '' : version '130' is not supported
ERROR: 0:2: '' : #version required and missing.
': examples/byo_gui_gl/src/lib.rs:105
My system runs the OpenGL version: 4.1 Metal - 89.4, and the GLSL version: 4.10. Which is incompatible with version '130' defined in gl.shader_source(shader, &format!("{}\n{}", "#version 130", shader_source));.
When I change it to gl.shader_source(shader, &format!("{}\n{}", "#version 330 core", shader_source)); the plugin compiles successfully on my system.
Now the issue is; how can we handle different OpenGL versions properly?