-
Notifications
You must be signed in to change notification settings - Fork 259
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
c2_triangle_elements.txt don't compile #31
Comments
Yes, I'm running Mavericks (10.9.5), with an Intel HD Graphics 5000 1536 MB graphics.
I'll keep looking for the solution, I'll update this thread if I find something. EDIT: Getting the compile error :
|
Try adding:
Or |
Tried this, it doesn't fix the problem. From http://stackoverflow.com/questions/20931528/shader-cant-be-compiled
The page give example of how to do this with Glut, but I can't find anything equivalent in the (non-existing) glew documentation. |
In that case you should use SDL or GLFW to create the context. Both of these are modern libraries (unlike Glut) and have support for creating a core profile context, as described in the context chapter. I'll see if I can add a disclaimer for Mac users. Edit: It appears that SFML should be creating a core profile context when passing 3 as major version: https://github.com/LaurentGomila/SFML/blob/master/src/SFML/Window/OSX/SFContext.mm#L199 I'm not sure why it's not working. You could try filing a bug with SFML. |
On line 33, you pass settings as 4th argument of window, this variable doesn't exist.
I'm pretty sure the variable to use is context, I changed it, the code compile without errors, but it still displays nothing on my Macbook Air.
The text was updated successfully, but these errors were encountered: