From a2b4c858475fe623a02f3114e7ab06db4e7d9920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 13 Mar 2023 19:39:35 +0100 Subject: [PATCH] Shaders: don't pass light count that gets unused to format(). Not sure what was this about originally. --- src/Magnum/Shaders/PhongGL.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Magnum/Shaders/PhongGL.cpp b/src/Magnum/Shaders/PhongGL.cpp index 083e592b8..8a67f7430 100644 --- a/src/Magnum/Shaders/PhongGL.cpp +++ b/src/Magnum/Shaders/PhongGL.cpp @@ -292,8 +292,7 @@ PhongGL::CompileState PhongGL::compile(const Configuration& configuration) { vert.addSource(Utility::format( "#define UNIFORM_BUFFERS\n" "#define DRAW_COUNT {}\n", - configuration.drawCount(), - configuration.lightCount())); + configuration.drawCount())); vert.addSource(configuration.flags() >= Flag::MultiDraw ? "#define MULTI_DRAW\n"_s : ""_s); } #endif