opengl: only populate Shader:getWarnings string when there are warnings.

This commit is contained in:
Sasha Szpakowski
2024-02-27 23:17:24 -04:00
parent 57fab45c2c
commit ff06718f8a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -600,7 +600,7 @@ std::string Shader::getWarnings() const
const std::string &stagewarnings = stage->getWarnings();
if (ShaderStage::getConstant(stage->getStageType(), stagestr))
if (!stagewarnings.empty() && ShaderStage::getConstant(stage->getStageType(), stagestr))
warnings += std::string(stagestr) + std::string(" shader:\n") + stagewarnings;
}