From 4019c8e6f5b7d6bf2aa448dda6d8e75630748549 Mon Sep 17 00:00:00 2001 From: Ousmane Traore Date: Fri, 25 Feb 2022 10:36:55 -0500 Subject: [PATCH 1/2] add support for apple m1 mac's --- gl_gl2.go | 8 ++++++-- gl_mobile.go | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gl_gl2.go b/gl_gl2.go index e9ec53e..67823f2 100644 --- a/gl_gl2.go +++ b/gl_gl2.go @@ -2,8 +2,12 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin,!arm,!arm64 linux windows -// +build !ios,!android,!js,!nogl +//go:build (darwin || linux || windows) && !ios && !android && !js && !nogl +// +build darwin linux windows +// +build !ios +// +build !android +// +build !js +// +build !nogl package gl diff --git a/gl_mobile.go b/gl_mobile.go index 8905e95..cfbb475 100644 --- a/gl_mobile.go +++ b/gl_mobile.go @@ -1,4 +1,4 @@ -//+build android darwin,arm darwin,arm64 ios +//+build android ios,amd64 ios,arm64 ios //+build !nogl package gl From 7f860ef55d98bce90cac1cc8f7548d675a2c98c2 Mon Sep 17 00:00:00 2001 From: Ousmane Traore Date: Fri, 25 Feb 2022 10:43:08 -0500 Subject: [PATCH 2/2] remove unnecessary build tags for ios --- gl_mobile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_mobile.go b/gl_mobile.go index cfbb475..e1a4d21 100644 --- a/gl_mobile.go +++ b/gl_mobile.go @@ -1,4 +1,4 @@ -//+build android ios,amd64 ios,arm64 ios +//+build android ios //+build !nogl package gl