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

Runtime error following example #38

Closed
jcmorrow opened this issue Dec 17, 2019 · 5 comments
Closed

Runtime error following example #38

jcmorrow opened this issue Dec 17, 2019 · 5 comments

Comments

@jcmorrow
Copy link

I get a runtime error when I try and follow the guide:

Error: CompilationError("ERROR: 0:1: \'\' :  version \'440\' is not supported\nERROR: 0:2: \'\' :  #version required and missing.\n")

That's all the information that's included, so I'm not even sure where to start debugging it.

@turnage
Copy link
Owner

turnage commented Dec 18, 2019

I think the OpenGL version on your host is older than the one I wrote the example for.

See this list: https://en.wikipedia.org/wiki/OpenGL_Shading_Language#Versions

You can write your GLSL in a different version. There may be some differences; I am not sure. I have only used version 440.

@zoosky
Copy link

zoosky commented Dec 19, 2019

I get the same on a Mac MBP with macOS 10.15.2. Supported OpenGL are 4.1 https://support.apple.com/en-us/HT202823

@turnage
Copy link
Owner

turnage commented Dec 20, 2019

Wow. I did not know OSX was using such an old version of OpenGL. That's nearly a decade old now.

I will look into earlier versions of GLSL to write the example in so it works for more people.

@zoosky
Copy link

zoosky commented Dec 21, 2019

maybe because Apple switched to Metal a few years ago https://en.m.wikipedia.org/wiki/Metal_(API)

Perhaps this is a path that helps https://gfx-rs.github.io

@jcmorrow
Copy link
Author

@turnage yep, that is also what I concluded after some digging. OpenGL is technically deprecated on OSX (although the existing support probably isn't going anywhere soon from what I understand). I also tried fiddling around to fix it but I don't know enough OpenGL to be helpful here I think.

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

No branches or pull requests

3 participants