From: Mikko Rasa Date: Sat, 20 Feb 2021 11:54:24 +0000 (+0200) Subject: Remove support for the legacy stage change syntax X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=af00eefb3f7da48ec4038357035980c31cbcb685 Remove support for the legacy stage change syntax --- 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;