From 99bfdef4164b71a7e07f18b748214744ec1e2b17 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 24 Oct 2021 15:09:16 +0900 Subject: [PATCH] internal/graphicsdriver/opengl/gl: Support OpenBSD --- internal/graphicsdriver/opengl/gl/package_notwindows.go | 2 +- internal/graphicsdriver/opengl/gl/procaddr_notwindows.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/graphicsdriver/opengl/gl/package_notwindows.go b/internal/graphicsdriver/opengl/gl/package_notwindows.go index a40158376..f940c3cb4 100644 --- a/internal/graphicsdriver/opengl/gl/package_notwindows.go +++ b/internal/graphicsdriver/opengl/gl/package_notwindows.go @@ -6,7 +6,7 @@ package gl // #cgo darwin LDFLAGS: -framework OpenGL -// #cgo linux freebsd pkg-config: gl +// #cgo linux freebsd openbsd pkg-config: gl // // #ifndef APIENTRY // #define APIENTRY diff --git a/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go b/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go index c81bdfc47..316cba786 100644 --- a/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go +++ b/internal/graphicsdriver/opengl/gl/procaddr_notwindows.go @@ -7,7 +7,7 @@ // correct version is chosen automatically based on build tags: // // darwin: CGL -// linux freebsd: GLX +// linux freebsd openbsd: GLX // // Use of EGL instead of the platform's default (listed above) is made possible // via the "egl" build tag. @@ -20,8 +20,8 @@ package gl /* #cgo darwin CFLAGS: -DTAG_DARWIN #cgo darwin LDFLAGS: -framework OpenGL -#cgo linux freebsd CFLAGS: -DTAG_POSIX -#cgo linux freebsd pkg-config: gl +#cgo linux freebsd openbsd CFLAGS: -DTAG_POSIX +#cgo linux freebsd openbsd pkg-config: gl #cgo egl CFLAGS: -DTAG_EGL #cgo egl pkg-config: egl // Check the EGL tag first as it takes priority over the platform's default