diff --git a/examples/offscreen.c b/examples/offscreen.c index 06852707..26dba0f5 100644 --- a/examples/offscreen.c +++ b/examples/offscreen.c @@ -51,6 +51,7 @@ static const struct }; static const char* vertex_shader_text = +"#version 110\n" "uniform mat4 MVP;\n" "attribute vec3 vCol;\n" "attribute vec2 vPos;\n" @@ -62,6 +63,7 @@ static const char* vertex_shader_text = "}\n"; static const char* fragment_shader_text = +"#version 110\n" "varying vec3 color;\n" "void main()\n" "{\n" diff --git a/examples/simple.c b/examples/simple.c index 717bb816..7752a365 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -44,6 +44,7 @@ static const struct }; static const char* vertex_shader_text = +"#version 110\n" "uniform mat4 MVP;\n" "attribute vec3 vCol;\n" "attribute vec2 vPos;\n" @@ -55,6 +56,7 @@ static const char* vertex_shader_text = "}\n"; static const char* fragment_shader_text = +"#version 110\n" "varying vec3 color;\n" "void main()\n" "{\n" diff --git a/tests/msaa.c b/tests/msaa.c index 468c5148..86f1e921 100644 --- a/tests/msaa.c +++ b/tests/msaa.c @@ -53,6 +53,7 @@ static const vec2 vertices[4] = }; static const char* vertex_shader_text = +"#version 110\n" "uniform mat4 MVP;\n" "attribute vec2 vPos;\n" "void main()\n" @@ -61,6 +62,7 @@ static const char* vertex_shader_text = "}\n"; static const char* fragment_shader_text = +"#version 110\n" "void main()\n" "{\n" " gl_FragColor = vec4(1.0);\n" diff --git a/tests/reopen.c b/tests/reopen.c index 262dffa2..18810c30 100644 --- a/tests/reopen.c +++ b/tests/reopen.c @@ -43,6 +43,7 @@ #include "linmath.h" static const char* vertex_shader_text = +"#version 110\n" "uniform mat4 MVP;\n" "attribute vec2 vPos;\n" "void main()\n" @@ -51,6 +52,7 @@ static const char* vertex_shader_text = "}\n"; static const char* fragment_shader_text = +"#version 110\n" "void main()\n" "{\n" " gl_FragColor = vec4(1.0);\n" diff --git a/tests/tearing.c b/tests/tearing.c index f1c0b78f..1d8a00a4 100644 --- a/tests/tearing.c +++ b/tests/tearing.c @@ -50,6 +50,7 @@ static const struct }; static const char* vertex_shader_text = +"#version 110\n" "uniform mat4 MVP;\n" "attribute vec2 vPos;\n" "void main()\n" @@ -58,6 +59,7 @@ static const char* vertex_shader_text = "}\n"; static const char* fragment_shader_text = +"#version 110\n" "void main()\n" "{\n" " gl_FragColor = vec4(1.0);\n"