diff options
-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 |