From aae25aec2ef73b7f37fcb9e8fa27e7099f416150 Mon Sep 17 00:00:00 2001 From: Xiaosong CHEN Date: Wed, 5 May 2021 01:44:49 +0800 Subject: [PATCH] fix test on macOS --- test/runtests.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 785502a..838b2ac 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,8 +8,12 @@ if !is_ci() # only do test if not CI... this is for automated testing environmen GLFW.Init() # OS X-specific GLFW hints to initialize the correct version of OpenGL - wh = 600 + GLFW.WindowHint(GLFW.CONTEXT_VERSION_MAJOR, 3) + GLFW.WindowHint(GLFW.CONTEXT_VERSION_MINOR, 3) + GLFW.WindowHint(GLFW.OPENGL_PROFILE, GLFW.OPENGL_CORE_PROFILE) + GLFW.WindowHint(GLFW.OPENGL_FORWARD_COMPAT, true) # Create a windowed mode window and its OpenGL context + wh = 600 window = GLFW.CreateWindow(wh, wh, "OpenGL Example") # Make the window's context current GLFW.MakeContextCurrent(window)