7
44
Fork
You've already forked nice-plug
22

byo_gui_gl crashes on macOS because of incompatible shader version #32

Closed
opened 2026年05月31日 15:15:24 +02:00 by davemollen · 2 comments
Contributor
Copy link

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?

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?

I added shader version detection to the byo_gui_gl example in #33 to hopefully fix the issue. (I used egui as a reference for how it does it.) Let me know if it works now!

Or is the gain_egui example failing as well?

I added shader version detection to the `byo_gui_gl` example in #33 to hopefully fix the issue. (I used egui as a reference for how it does it.) Let me know if it works now! Or is the `gain_egui` example failing as well?
Author
Contributor
Copy link

It works now!
And to be clear; I had no issues with the gain_egui example on my machine.

It works now! And to be clear; I had no issues with the `gain_egui` example on my machine.
Sign in to join this conversation.
No Branch/Tag specified
main
resizing
dev
standalone_fixes
FoobarIT/main
fixes
egui_3rd_party
vizia_baseview_update
egui_32
softbuffer
byo_gui_examples
raw_graphics_examples
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RustAudio/nice-plug#32
Reference in a new issue
RustAudio/nice-plug
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?