From af00eefb3f7da48ec4038357035980c31cbcb685 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 20 Feb 2021 13:54:24 +0200 Subject: [PATCH] Remove support for the legacy stage change syntax --- source/glsl/parser.cpp | 11 ----------- 1 file changed, 11 deletions(-) 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; -- 2.45.2