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:
parent
95cac0b549
commit
96effb3690
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user