Second attempt to fix a graphical glitch in ARB mode
This was SVN commit r12526.
This commit is contained in:
parent
cd0802294a
commit
89cf2b26e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user