simplify settings-based shaders recompilation

This commit is contained in:
MihailRis 2026-06-18 22:12:22 +03:00
parent 3fc1097217
commit af71d5b674
3 changed files with 58 additions and 57 deletions

View file

@ -186,7 +186,8 @@ void Shader::recompile(const std::vector<std::string>& defines) {
glDeleteProgram(id);
id = newProgram;
uniformLocations.clear();
logger.info() << "shader " << id << " has been recompiled";
logger.debug() << "shader program (" << vertexSource.file << ", "
<< fragmentSource.file << ") has been recompiled";
}
std::unique_ptr<Shader> Shader::create(