parent
40de567297
commit
8589a1b117
1 changed files with 6 additions and 9 deletions
|
@ -571,15 +571,12 @@ Error ShaderCompilerGLES2::compile_node(SL::ProgramNode *p_program) {
|
||||||
|
|
||||||
global_code+=uline;
|
global_code+=uline;
|
||||||
if (uniforms) {
|
if (uniforms) {
|
||||||
//if (uniforms->has(E->key())) {
|
// Check to avoid uniforms with the same name being re-added to avoid overwriting entries
|
||||||
// //repeated uniform, error
|
if (!uniforms->has(E->key())) {
|
||||||
// ERR_EXPLAIN("Uniform already exists from other shader: "+String(E->key()));
|
SL::Uniform u = E->get();
|
||||||
// ERR_FAIL_COND_V(uniforms->has(E->key()),ERR_ALREADY_EXISTS);
|
u.order+=ubase;
|
||||||
//
|
uniforms->insert(E->key(),u);
|
||||||
// }
|
}
|
||||||
SL::Uniform u = E->get();
|
|
||||||
u.order+=ubase;
|
|
||||||
uniforms->insert(E->key(),u);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue