From: James Turner Date: Wed, 4 Apr 2012 15:44:23 +0000 (+0100) Subject: Set the filename as the OSG object name on shaders - should have done this years... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d0330675a512a3c97665b3e226771bcb3bda1a9;p=simgear.git Set the filename as the OSG object name on shaders - should have done this years ago :) --- diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index fa99ccb5..978aa064 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -839,6 +839,7 @@ void ShaderProgramBuilder::buildAttribute(Effect* effect, Pass* pass, program->addShader(sitr->second.get()); } else { ref_ptr shader = new Shader(stype); + shader->setName(fileName); if (shader->loadShaderSourceFromFile(fileName)) { program->addShader(shader.get()); shaderMap.insert(ShaderMap::value_type(skey, shader));