mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user