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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-10-22 15:08:50 -06:00
parent b707b199b3
commit e69ef4f0b4
4 changed files with 8 additions and 2 deletions
+2
View File
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: Unlicense OR MIT
//go:build !noopengl
package app
/*
+2 -1
View File
@@ -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
+2
View File
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: Unlicense OR MIT
//go:build !noopengl
package app
import (
+2 -1
View File
@@ -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