From f45856411638279ed9dad0b6f5473d8ce8a246f1 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Tue, 28 Oct 2014 12:08:26 +1100 Subject: [PATCH] go.mobile/example/basic: strip the "core" from the shaders' "# version 100 core", as Ubuntu 14.04's OpenGLES doesn't like it: "shader compile: 0:1(10): error: illegal text following version number" LGTM=adg, crawshaw R=crawshaw, bryanturley, adg CC=golang-codereviews https://golang.org/cl/163260043 --- example/basic/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/basic/main.go b/example/basic/main.go index fb7e074..e4909d5 100644 --- a/example/basic/main.go +++ b/example/basic/main.go @@ -108,7 +108,7 @@ var triangleCoords = []float32{ } var vertexCount = len(triangleCoords) / coordsPerVertex -const vertexShader = `#version 100 core +const vertexShader = `#version 100 uniform vec2 offset; attribute vec4 position; @@ -119,7 +119,7 @@ void main() { gl_Position = position + offset4; }` -const fragmentShader = `#version 100 core +const fragmentShader = `#version 100 precision mediump float; uniform vec4 color; void main() {