//ACGL::Utils::debug() << "Color attachment " << mColorAttachments[i].name << " (index " << i << ") should be mapped to frag data location " << location;
//ACGL::Utils::debug() << ". Currently mapped to: " << mFragDataLocationIndices[location] << std::endl;
if(location!=-1)// is a mapping by that name specified?
{
//ACGL::Utils::debug() << "Attaching frag data location " << location << " to color attachment " << i << std::endl;
mFragDataLocationIndices[location]=i;
}
}
if(needsUpdate)
{
updateDrawBuffers();
}
}
voidFrameBufferObject::updateDrawBuffers()
{
// No fragment data mappings set up? -> Nothing to do
if(mFragDataLocationIndices.size()==0)
{
return;
}
// The (temporary) buffer mapping table must be large enough to contain all mapped frag data locations