Skip to content

Test failing on Mac OS X #30

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions