From e69ef4f0b42e035cf67e90585de58a5e1261c078 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 22 Oct 2022 15:08:50 -0600 Subject: [PATCH] app: disable OpenGL backend when the `noopengl` tag is present The tag `noopengl` is useful for testing the Vulkan backend which is no longer default. Signed-off-by: Elias Naur --- app/egl_android.go | 2 ++ app/egl_wayland.go | 3 ++- app/egl_windows.go | 2 ++ app/egl_x11.go | 3 ++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/egl_android.go b/app/egl_android.go index 2c311302..4d8352e7 100644 --- a/app/egl_android.go +++ b/app/egl_android.go @@ -1,5 +1,7 @@ // SPDX-License-Identifier: Unlicense OR MIT +//go:build !noopengl + package app /* diff --git a/app/egl_wayland.go b/app/egl_wayland.go index c2406a0a..f0933364 100644 --- a/app/egl_wayland.go +++ b/app/egl_wayland.go @@ -1,8 +1,9 @@ // SPDX-License-Identifier: Unlicense OR MIT -//go:build ((linux && !android) || freebsd) && !nowayland +//go:build ((linux && !android) || freebsd) && !nowayland && !noopengl // +build linux,!android freebsd // +build !nowayland +// +build !noopengl package app diff --git a/app/egl_windows.go b/app/egl_windows.go index 3a95450e..f4d994ad 100644 --- a/app/egl_windows.go +++ b/app/egl_windows.go @@ -1,5 +1,7 @@ // SPDX-License-Identifier: Unlicense OR MIT +//go:build !noopengl + package app import ( diff --git a/app/egl_x11.go b/app/egl_x11.go index 72348084..7186cc0b 100644 --- a/app/egl_x11.go +++ b/app/egl_x11.go @@ -1,8 +1,9 @@ // SPDX-License-Identifier: Unlicense OR MIT -//go:build ((linux && !android) || freebsd || openbsd) && !nox11 +//go:build ((linux && !android) || freebsd || openbsd) && !nox11 && !noopengl // +build linux,!android freebsd openbsd // +build !nox11 +// +build !noopengl package app -- 2.38.5