diff options
author | Coşku Baş <cosku.bas@gmail.com> | 2015-01-30 08:21:14 +0200 |
---|---|---|
committer | Coşku Baş <cosku.bas@gmail.com> | 2015-01-30 08:21:14 +0200 |
commit | 7ece0e72809276d312d2800b3d3bb75218473572 (patch) | |
tree | 7bc9dcc5f60ad87e06fb5118a368adf9936a6ed0 | |
parent | 417e57f08cc73bc835e4ebb5124bcc635497f673 (diff) | |
parent | e8cbb157badef11e577fecc3e3fe95a918b72d18 (diff) | |
download | glfw3-devel_glfw3.1.tar.gz |
Merge pull request #124 from slimsag/gles2_on_desktopstudio-master-releasestudio-1.3-releasedevel_glfw3.1
Allow use of OpenGL ES 2 on Desktop platforms with -tags=gles2
-rw-r--r-- | build.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,12 +1,13 @@ package glfw3 /* -// Choose OpenGL client on 386 and amd64. -#cgo 386 CFLAGS: -D_GLFW_USE_OPENGL -#cgo amd64 CFLAGS: -D_GLFW_USE_OPENGL +// Standard OpenGL client is used on 386 and amd64 architectures, except when +// explicitly asked for gles2 or wayland. +#cgo 386,!gles2,!wayland CFLAGS: -D_GLFW_USE_OPENGL +#cgo amd64,!gles2,!wayland CFLAGS: -D_GLFW_USE_OPENGL -// Choose OpenGL ES V2 on arm. -#cgo arm CFLAGS: -D_GLFW_USE_GLESV2 +// Choose OpenGL ES V2 on arm, or when explicitly asked for gles2/wayland. +#cgo arm gles2 wayland CFLAGS: -D_GLFW_USE_GLESV2 // Windows Build Tags |