Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImGui implOpenGL3 default use glsl version 1.30, not supported on some macOS #20

Closed
Jason0214 opened this issue Mar 2, 2019 · 3 comments · Fixed by #24
Closed

ImGui implOpenGL3 default use glsl version 1.30, not supported on some macOS #20

Jason0214 opened this issue Mar 2, 2019 · 3 comments · Fixed by #24

Comments

@Jason0214
Copy link
Contributor

ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile vertex shader!
ERROR: 0:1: '' :  version '130' is not supported
ERROR: 0:2: '' :  #version required and missing.

ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile fragment shader!
ERROR: 0:1: '' :  version '130' is not supported
ERROR: 0:2: '' :  #version required and missing.

ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link shader program!
ERROR: One or more attached shaders not successfully compiled

it may related to ocornut/imgui#1938 and ocornut/imgui#1466

looks like there is way to tell imgui use specific glsl version, but no idea how to do it in java binding

@Jason0214
Copy link
Contributor Author

Jason0214 commented Mar 2, 2019

it's weird, looking at the code here

#if __APPLE__
, here glsl_version is properly set, but passed to nowhere

@ice1000
Copy link
Owner

ice1000 commented Mar 2, 2019

This is way too complicated for the purpose I created this library...

Maybe passing an extra argument to the jni library?

@Jason0214
Copy link
Contributor Author

I will give it some try myself later to see if I can solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants