Merge pull request #51548 from Chaosus/shader_silence_error
Removes an internal error report if shader fails compile
This commit is contained in:
commit
22ccb74aff
@ -131,8 +131,9 @@ void SceneShaderForwardClustered::ShaderData::set_code(const String &p_code) {
|
||||
|
||||
SceneShaderForwardClustered *shader_singleton = (SceneShaderForwardClustered *)SceneShaderForwardClustered::singleton;
|
||||
Error err = shader_singleton->compiler.compile(RS::SHADER_SPATIAL, code, &actions, path, gen_code);
|
||||
|
||||
ERR_FAIL_COND(err != OK);
|
||||
if (err != OK) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (version.is_null()) {
|
||||
version = shader_singleton->shader.version_create();
|
||||
|
@ -142,7 +142,9 @@ public:
|
||||
ERR_FAIL_COND_V(!variants_enabled[p_variant], RID());
|
||||
|
||||
Version *version = version_owner.getornull(p_version);
|
||||
ERR_FAIL_COND_V(!version, RID());
|
||||
if (!version) {
|
||||
return RID();
|
||||
}
|
||||
|
||||
if (version->dirty) {
|
||||
_compile_version(version);
|
||||
|
Loading…
Reference in New Issue
Block a user