Change shaders to use GLSL 1.2, the version used in GL 2.1.

This commit is contained in:
Kitlith 2015-05-08 15:06:37 -07:00
parent 4e01145461
commit 13a67561bf

View File

@ -7,7 +7,7 @@
namespace GLShaders { namespace GLShaders {
const char g_vertex_shader[] = R"( const char g_vertex_shader[] = R"(
#version 150 core #version 120 core
in vec2 vert_position; in vec2 vert_position;
in vec2 vert_tex_coord; in vec2 vert_tex_coord;
@ -30,7 +30,7 @@ void main() {
)"; )";
const char g_fragment_shader[] = R"( const char g_fragment_shader[] = R"(
#version 150 core #version 120 core
in vec2 frag_tex_coord; in vec2 frag_tex_coord;
out vec4 color; out vec4 color;