1
0
forked from 0ad/0ad

Second attempt to fix a graphical glitch in ARB mode

This was SVN commit r12526.
This commit is contained in:
myconid 2012-08-25 21:41:31 +00:00
parent cd0802294a
commit 89cf2b26e3

View File

@ -640,6 +640,11 @@ void ShaderModelRenderer::Render(const RenderModifierPtr& modifier, const CShade
currentTexs.resize(samplersNum, NULL);
texBindings.resize(samplersNum, CShaderProgram::Binding());
texBindingNames.resize(samplersNum, CStrIntern());
// ensure they are definitely empty
std::fill(texBindings.begin(), texBindings.end(), CShaderProgram::Binding());
std::fill(currentTexs.begin(), currentTexs.end(), (CTexture*)NULL);
std::fill(texBindingNames.begin(), texBindingNames.end(), CStrIntern());
}
// bind the samplers to the shader