internal/graphicsdriver/opengl/gl: bug fix: wrong build tags

This commit is contained in:
Hajime Hoshi 2022-07-09 16:15:56 +09:00
parent c1b31fa504
commit 55c7a2df6c

View File

@ -19,10 +19,11 @@ package gl
/*
#cgo linux freebsd openbsd CFLAGS: -DTAG_POSIX
#cgo linux,!ebitenginecbackend && !ebitencbackend freebsd,!ebitencbackend openbsd,!ebitencbackend pkg-config: gl
#cgo linux,!ebitenginecbackend,!ebitencbackend freebsd,!ebitenginecbackend,!ebitencbackend openbsd,!ebitenginecbackend,!ebitencbackend pkg-config: gl
#cgo egl CFLAGS: -DTAG_EGL
#cgo egl,!ebitenginecbackend && !ebitencbackend pkg-config: egl
#cgo ebitenginecbackend || ebitencbackend LDFLAGS: -Wl,-unresolved-symbols=ignore-all
#cgo egl,!ebitenginecbackend,!ebitencbackend pkg-config: egl
#cgo ebitenginecbackend ebitencbackend LDFLAGS: -Wl,-unresolved-symbols=ignore-all
// Check the EGL tag first as it takes priority over the platform's default
// configuration of WGL/GLX/CGL.
#if defined(TAG_EGL)