You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Removes an internal error report if shader fails compile
This commit is contained in:
@@ -131,8 +131,9 @@ void SceneShaderForwardClustered::ShaderData::set_code(const String &p_code) {
|
|||||||
|
|
||||||
SceneShaderForwardClustered *shader_singleton = (SceneShaderForwardClustered *)SceneShaderForwardClustered::singleton;
|
SceneShaderForwardClustered *shader_singleton = (SceneShaderForwardClustered *)SceneShaderForwardClustered::singleton;
|
||||||
Error err = shader_singleton->compiler.compile(RS::SHADER_SPATIAL, code, &actions, path, gen_code);
|
Error err = shader_singleton->compiler.compile(RS::SHADER_SPATIAL, code, &actions, path, gen_code);
|
||||||
|
if (err != OK) {
|
||||||
ERR_FAIL_COND(err != OK);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (version.is_null()) {
|
if (version.is_null()) {
|
||||||
version = shader_singleton->shader.version_create();
|
version = shader_singleton->shader.version_create();
|
||||||
|
|||||||
@@ -142,7 +142,9 @@ public:
|
|||||||
ERR_FAIL_COND_V(!variants_enabled[p_variant], RID());
|
ERR_FAIL_COND_V(!variants_enabled[p_variant], RID());
|
||||||
|
|
||||||
Version *version = version_owner.getornull(p_version);
|
Version *version = version_owner.getornull(p_version);
|
||||||
ERR_FAIL_COND_V(!version, RID());
|
if (!version) {
|
||||||
|
return RID();
|
||||||
|
}
|
||||||
|
|
||||||
if (version->dirty) {
|
if (version->dirty) {
|
||||||
_compile_version(version);
|
_compile_version(version);
|
||||||
|
|||||||
Reference in New Issue
Block a user