Skip to content

Commit

Permalink
tmpl: add Windows support for the egl tag
Browse files Browse the repository at this point in the history
Google's ANGLE library implements OpenGL ES on top of Windows GPU
APIs.

Updates go-gl#51

Signed-off-by: Elias Naur <[email protected]>
  • Loading branch information
eliasnaur committed Jan 27, 2021
1 parent f340092 commit 1875e83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmpl/procaddr.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ package {{.Name}}
#cgo linux freebsd openbsd CFLAGS: -DTAG_POSIX
#cgo !egl,linux !egl,freebsd !egl,openbsd pkg-config: gl

#cgo egl,linux egl,freebsd egl,openbsd CFLAGS: -DTAG_EGL
#cgo egl,linux egl,freebsd egl,openbsd egl,windows CFLAGS: -DTAG_EGL
#cgo egl,linux egl,freebsd egl,openbsd pkg-config: egl
#cgo egl,windows LDFLAGS: -lEGL


// Check the EGL tag first as it takes priority over the platform's default
Expand Down

0 comments on commit 1875e83

Please sign in to comment.