kotlin-graphics / imgui

Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
MIT License
594 stars 37 forks source link

Shaders do not compile on M1 (macOS 11.4) #171

Closed tasgon closed 2 years ago

tasgon commented 2 years ago

Trying to render anything results in a glShader compile status false: ERROR: 0:2: '' : version '150' is not supported error. I've tried changing the imgui.impl.gl.glslVersion variable to 320 and 410 to no avail.

I am using custom-built native libraries of LWJGL 3.2.1 for aarch64 support. Could that be the source of the issue?

Sylvyrfysh commented 2 years ago

Hello there!

Does this issue happen under native code, or Rosetta execution?

On Tue, Jul 20, 2021, 06:04 M @.***> wrote:

Trying to render anything results in a glShader compile status false: ERROR: 0:2: '' : version '150' is not supported error. I've tried changing the imgui.impl.gl.glslVersion variable to 320 and 410 to no avail.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kotlin-graphics/imgui/issues/171, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTJ6QGOTAYH7N4H62XNHS3TYVC4RANCNFSM5AVPEWPA .

tasgon commented 2 years ago

This happens with native code.

tasgon commented 2 years ago

Turns out this was user error. I was attempting to use ImplGL3 when I should have been using ImplBestGL for macOS support. My bad.