Browse Source

Shaders: don't pass light count that gets unused to format().

Not sure what was this about originally.
pull/617/head
Vladimír Vondruš 3 years ago
parent
commit
a2b4c85847
  1. 3
      src/Magnum/Shaders/PhongGL.cpp

3
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

Loading…
Cancel
Save