Просмотр исходного кода

~ Fixed a mistake in the variable parsing for the shader pre-compiler, arrays are not always expected

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Alexis Maiquez 6 лет назад
Родитель
Сommit
e89e80c2b8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/WallpaperEngine/Render/Shaders/Compiler.cpp

+ 2 - 2
src/WallpaperEngine/Render/Shaders/Compiler.cpp

@@ -319,7 +319,7 @@ namespace WallpaperEngine::Render::Shaders
                     this->ignoreSpaces (it);
                     this->ignoreSpaces (it);
                     std::string name = this->extractName (it); BREAK_IF_ERROR
                     std::string name = this->extractName (it); BREAK_IF_ERROR
                     this->ignoreSpaces (it);
                     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->ignoreSpaces (it);
                     this->expectSemicolon (it); BREAK_IF_ERROR
                     this->expectSemicolon (it); BREAK_IF_ERROR
                     this->ignoreSpaces (it);
                     this->ignoreSpaces (it);
@@ -353,7 +353,7 @@ namespace WallpaperEngine::Render::Shaders
                     this->ignoreSpaces (it);
                     this->ignoreSpaces (it);
                     std::string name = this->extractName (it); BREAK_IF_ERROR
                     std::string name = this->extractName (it); BREAK_IF_ERROR
                     this->ignoreSpaces (it);
                     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->ignoreSpaces (it);
                     this->expectSemicolon (it); BREAK_IF_ERROR
                     this->expectSemicolon (it); BREAK_IF_ERROR