Parcourir la source

The "max" function has the parameters in the reverse order, fixes #86 not booting up

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Alexis Maiquez Murcia il y a 4 ans
Parent
commit
8450413105
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/WallpaperEngine/Render/Shaders/Compiler.cpp

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

@@ -459,6 +459,7 @@ namespace WallpaperEngine::Render::Shaders
                           "#define mediump\n"
                           "#define lowp\n"
                           "#define mul(x, y) (y * x)\n"
+                          "#define max(x, y) max (y, x)\n"
                           "#define frac fract\n"
                           "#define CAST2(x) (vec2(x))\n"
                           "#define CAST3(x) (vec3(x))\n"