]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove support for the legacy stage change syntax
authorMikko Rasa <tdb@tdb.fi>
Sat, 20 Feb 2021 11:54:24 +0000 (13:54 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 20 Feb 2021 12:42:13 +0000 (14:42 +0200)
source/glsl/parser.cpp

index 3047e136e288303a5725fcdd2ec1d103b3290c2a..60cc3516b0750db9f131e8a665b135c89d7dab7b 100644 (file)
@@ -49,17 +49,6 @@ Module &Parser::parse(IO::Base &io, const string &n, unsigned i)
 
 void Parser::parse_source(const string &name)
 {
-       while(1)
-       {
-               string::size_type slashes = source.find("//////");
-               if(slashes==string::npos)
-                       break;
-
-               string::size_type newline = source.find('\n', slashes);
-               string pragma = format("#pragma MSP stage(%s)", source.substr(slashes+6, newline-slashes-6));
-               source.replace(slashes, newline-slashes, pragma);
-       }
-
        delete module;
        module = new Module;
        cur_stage = &module->shared;