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
This commit is contained in:
Nigel Tao
2014-10-28 12:08:26 +11:00
parent b3557d6b50
commit f458564116
+2 -2
View File
@@ -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() {