only bind world textures on world shaders
parent
7ac0fad627
commit
0f657c2998
|
@ -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 ¶m = s.defaultparams[i];
|
||||
|
|
Loading…
Reference in New Issue