Merge pull request #67498 from Chaosus/fix_shader_crash
This commit is contained in:
commit
468762b3b7
1 changed files with 3 additions and 0 deletions
|
@ -8635,12 +8635,15 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
|||
} break;
|
||||
case TK_HINT_SCREEN_TEXTURE: {
|
||||
new_hint = ShaderNode::Uniform::HINT_SCREEN_TEXTURE;
|
||||
--texture_uniforms;
|
||||
} break;
|
||||
case TK_HINT_NORMAL_ROUGHNESS_TEXTURE: {
|
||||
new_hint = ShaderNode::Uniform::HINT_NORMAL_ROUGHNESS_TEXTURE;
|
||||
--texture_uniforms;
|
||||
} break;
|
||||
case TK_HINT_DEPTH_TEXTURE: {
|
||||
new_hint = ShaderNode::Uniform::HINT_DEPTH_TEXTURE;
|
||||
--texture_uniforms;
|
||||
} break;
|
||||
case TK_FILTER_NEAREST: {
|
||||
new_filter = FILTER_NEAREST;
|
||||
|
|
Loading…
Add table
Reference in a new issue