From Martin Naylor, "Please find attached a fix for the STD library(tested under Windowsx64

VS2008) when atomiccounter is found but not used."
This commit is contained in:
Robert Osfield 2012-04-06 11:29:29 +00:00
parent 95cac0b549
commit 96effb3690

View File

@ -769,7 +769,8 @@ void Program::PerContextProgram::linkProgram(osg::State& state)
}
// print atomic counter
if (_extensions->isShaderAtomicCounterSupported())
if (_extensions->isShaderAtomicCounterSupported() && !atomicCounterMap.empty())
{
std::vector<GLint> bufferIndex( atomicCounterMap.size(), 0 );
std::vector<GLuint> uniformIndex;