1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Removes an internal error report if shader fails compile

This commit is contained in:
Yuri Roubinsky
2021-08-12 10:07:02 +03:00
parent e2ca1d413e
commit 63c7d5c330
2 changed files with 6 additions and 3 deletions

View File

@@ -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);