mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Do not error on empty shader, just treat it as invalid by default. Fixes #15998.
(cherry picked from commit 4d88721e62)
This commit is contained in:
committed by
Rémi Verschelde
parent
a1b748f5f4
commit
586b73adf7
@@ -1597,6 +1597,10 @@ void RasterizerStorageGLES3::_update_shader(Shader *p_shader) const {
|
||||
|
||||
p_shader->uniforms.clear();
|
||||
|
||||
if (p_shader->code == String()) {
|
||||
return; //just invalid, but no error
|
||||
}
|
||||
|
||||
ShaderCompilerGLES3::GeneratedCode gen_code;
|
||||
ShaderCompilerGLES3::IdentifierActions *actions = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user