From cd40950ade52a3761e4f020275bd0a12bf2f4a22 Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Date: Wed, 1 Feb 2023 01:07:09 +0100 Subject: [PATCH] Fixed some shaders not getting properly compiled (missing part of the content) Signed-off-by: Alexis Maiquez --- src/WallpaperEngine/Render/Shaders/Compiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WallpaperEngine/Render/Shaders/Compiler.cpp b/src/WallpaperEngine/Render/Shaders/Compiler.cpp index e282fae..8bcc61f 100644 --- a/src/WallpaperEngine/Render/Shaders/Compiler.cpp +++ b/src/WallpaperEngine/Render/Shaders/Compiler.cpp @@ -365,6 +365,7 @@ namespace WallpaperEngine::Render::Shaders // types not found, try names if (this->m_error == false) { + this->ignoreSpaces (it); this->m_compiledContent += type; } else @@ -444,9 +445,10 @@ namespace WallpaperEngine::Render::Shaders // check for types first std::string type = this->extractType (it); - // types not found, try names + // type found if (this->m_error == false) { + this->ignoreSpaces (it); // check for main, and take it into account, this also helps adding the includes std::string name = this->extractName (it);