only bind world textures on world shaders

master
Lee Salzman 2013-03-06 05:34:23 +02:00
parent 7ac0fad627
commit 0f657c2998
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ static void linkglslprogram(Shader &s, bool msg = true)
GLint loc = glGetUniformLocation_(s.program, texnames[i]);
if(loc != -1) glUniform1i_(loc, i);
}
bindworldtexlocs(s);
if(s.type & SHADER_WORLD) bindworldtexlocs(s);
loopv(s.defaultparams)
{
SlotShaderParamState &param = s.defaultparams[i];