From 418a6dc5dc7ea67458548aa0c4040f4b0ed2a5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tilo=20Pr=C3=BCtz?= Date: Sat, 4 Apr 2020 19:07:06 +0200 Subject: [PATCH] init GLFW before anything else in GLFW tests This seems to fix #782. --- internal/driver/glfw/window_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/driver/glfw/window_test.go b/internal/driver/glfw/window_test.go index 805353b456..47ffc21cb6 100644 --- a/internal/driver/glfw/window_test.go +++ b/internal/driver/glfw/window_test.go @@ -32,6 +32,7 @@ func init() { // TestMain makes sure that our driver is running on the main thread. // This must be done for some of our tests to function correctly. func TestMain(m *testing.M) { + d.(*gLDriver).initGLFW() go func() { os.Exit(m.Run()) }()