Skip to content

Commit

Permalink
Merge pull request #138 from hagabaka/trunk
Browse files Browse the repository at this point in the history
Avoid error due to using GLSL 1.5 when unsupported
  • Loading branch information
sweetkristas committed Mar 23, 2016
2 parents 6534285 + 09a3fbd commit 6f1771a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kre/ShadersOGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ namespace KRE
// special case for font-shader to work around amd bug.
std::string font_shader_vertex_shader;
variant node;
if(GLEW_ARB_explicit_attrib_location) {
if(GLEW_ARB_explicit_attrib_location && glewIsSupported("GL_VERSION_3_2")) {
font_shader_vertex_shader = font_shader_vs_layout;
} else {
font_shader_vertex_shader = font_shader_vs;
Expand Down

0 comments on commit 6f1771a

Please sign in to comment.