Browse Source

~ better fix for #103

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 4 năm trước cách đây
mục cha
commit
e51734e4f9
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      src/WallpaperEngine/Render/Shaders/Compiler.cpp

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

@@ -265,7 +265,7 @@ namespace WallpaperEngine::Render::Shaders
                     // extract value between quotes
                     filename = this->extractQuotedValue (it); BREAK_IF_ERROR
 
-                    if (this->m_content.find (" main(") == std::string::npos && this->m_content.find (" main (") == std::string::npos)
+                    if (this->m_recursive)
                     {
                         this->m_compiledContent += "// begin of include from file " + filename + "\r\n";
                         this->m_compiledContent += this->lookupShaderFile (filename);