mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
opengl: only populate Shader:getWarnings string when there are warnings.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user