From e89e80c2b8a4734dd935e6bf6a6d50b023a77158 Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Date: Thu, 29 Oct 2020 12:00:51 +0100 Subject: [PATCH] ~ Fixed a mistake in the variable parsing for the shader pre-compiler, arrays are not always expected Signed-off-by: Alexis Maiquez Murcia --- src/WallpaperEngine/Render/Shaders/Compiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WallpaperEngine/Render/Shaders/Compiler.cpp b/src/WallpaperEngine/Render/Shaders/Compiler.cpp index b7bad42..53d8faa 100644 --- a/src/WallpaperEngine/Render/Shaders/Compiler.cpp +++ b/src/WallpaperEngine/Render/Shaders/Compiler.cpp @@ -319,7 +319,7 @@ namespace WallpaperEngine::Render::Shaders this->ignoreSpaces (it); std::string name = this->extractName (it); BREAK_IF_ERROR this->ignoreSpaces (it); - std::string array = this->extractArray (it); BREAK_IF_ERROR + std::string array = this->extractArray (it, false); BREAK_IF_ERROR this->ignoreSpaces (it); this->expectSemicolon (it); BREAK_IF_ERROR this->ignoreSpaces (it); @@ -353,7 +353,7 @@ namespace WallpaperEngine::Render::Shaders this->ignoreSpaces (it); std::string name = this->extractName (it); BREAK_IF_ERROR this->ignoreSpaces (it); - std::string array = this->extractArray (it); BREAK_IF_ERROR + std::string array = this->extractArray (it, false); BREAK_IF_ERROR this->ignoreSpaces (it); this->expectSemicolon (it); BREAK_IF_ERROR