Browse Source

Fixed multiple defines of the same thing

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

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

@@ -576,6 +576,8 @@ namespace WallpaperEngine::Render::Shaders
 					continue;
 
 				finalCode += "#define " + define + " 0\n";
+
+				inserted.insert_or_assign (define, true);
 			}
         }