X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.cpp;h=60cc3516b0750db9f131e8a665b135c89d7dab7b;hb=af00eefb3f7da48ec4038357035980c31cbcb685;hp=3047e136e288303a5725fcdd2ec1d103b3290c2a;hpb=9a63244c1342337915c4610401a24c09fa72cc3d;p=libs%2Fgl.git diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index 3047e136..60cc3516 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -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;