X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;h=d50039993bafc08853fe1278803f053212521f71;hp=675b25b4940c3d9a9048d3d4488220340b31817b;hb=f907b7bebd1085805d93124be5c16de29d3d63f7;hpb=4cf76ac1b1565a8710b2906dbd2d03a2b53cedfe diff --git a/util.cpp b/util.cpp index 675b25b..d500399 100644 --- a/util.cpp +++ b/util.cpp @@ -127,12 +127,7 @@ string read_file(const string &filename) string read_version_dependent_file(const string &base, const string &extension) { - if (movit_shader_model == MOVIT_GLSL_130_AS_110) { - string contents = read_file(base + ".130." + extension); - assert(contents.find("#version 130") == 0); - contents[10] = '1'; // Change from 130 to 110. - return contents; - } else if (movit_shader_model == MOVIT_GLSL_130) { + if (movit_shader_model == MOVIT_GLSL_130) { return read_file(base + ".130." + extension); } else if (movit_shader_model == MOVIT_GLSL_150) { return read_file(base + ".150." + extension);