Skip to content

Commit

Permalink
Add remaining GLSL version directives
Browse files Browse the repository at this point in the history
Related to #864.
  • Loading branch information
elmindreda committed Dec 5, 2016
1 parent 1b17a52 commit 1252016
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/offscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions examples/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions tests/msaa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions tests/reopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions tests/tearing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 1252016

Please sign in to comment.