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

Test failing on Mac OS X #30

Open
ghost opened this issue Jun 7, 2016 · 2 comments
Open

Test failing on Mac OS X #30

ghost opened this issue Jun 7, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2016

When running the tests on my MacBook Pro I get an GL_INVALID_OPERATION error on generating a buffer. Seems like the Mac only creates an OpenGL 2.1.0 context. I found that GLFW needs additional hints on Mac. See http://www.glfw.org/faq.html#how-do-i-create-an-opengl-30-context

Adding the following lines after GLFW.Init() solved the problem for me.

@osx? begin
        GLFW.WindowHint(GLFW.CONTEXT_VERSION_MAJOR, 4)
        GLFW.WindowHint(GLFW.CONTEXT_VERSION_MINOR, 1)
        GLFW.WindowHint(GLFW.OPENGL_FORWARD_COMPAT, GL_TRUE)
        GLFW.WindowHint(GLFW.OPENGL_PROFILE, GLFW.OPENGL_CORE_PROFILE)
end : ()

I am still very new to Julia so there might be a better solution but maybe this helps somebody else.

@drjrkuhn
Copy link

drjrkuhn commented Jul 4, 2016

I can confirm. I was getting the same GL_INVALID_OPERATION error on OSX. Adding this code to the tests/runtests.jl file just after the GLFW.Init() statement solved the problem for me too, and the test passed (visually too).

I have been having problems getting GLVisualize to work properly on OSX. The question is where should this fix be integrated in the package chain? In GLFW? In ModernGL?

@SimonDanisch
Copy link
Member

Sorry about not answering, this is very low priority, since the tests
aren't really used. GLWindow should do this correctly, though!

Any error you have in GLVisualize should be unrelated to this. Can you open
an issue at GLVisualize?!
On 4 Jul 2016 18:04, "drjrkuhn" [email protected] wrote:

I can confirm. I was getting the same GL_INVALID_OPERATION error on OSX.
Adding this code to the tests/runtests.jl file just after the GLFW.Init()
statement solved the problem for me too, and the test passed (visually too).

I have been having problems getting GLVisualize to work properly on OSX.
The question is where should this fix be integrated in the package chain?
In GLFW? In ModernGL?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA9rIzGjG8NlKUROzIR9lCLckG3iliyAks5qSS8fgaJpZM4Ivmuf
.

yurivish added a commit that referenced this issue Mar 24, 2018
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

2 participants