Skip to content

Commit

Permalink
fix #30; failing tests on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivish committed Mar 24, 2018
1 parent b757f0e commit fe97ee0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ end
if !is_ci() # only do test if not CI... this is for automated testing environments which fail for OpenGL stuff, but I'd like to test if at least including works

GLFW.Init()

# OS X-specific GLFW hints to initialize the correct version of OpenGL
if Sys.isapple()
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

wh = 600
# Create a windowed mode window and its OpenGL context
window = GLFW.CreateWindow(wh, wh, "OpenGL Example")
Expand Down

0 comments on commit fe97ee0

Please sign in to comment.