mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Fix editor crash when assigning some uniform hints to the textures
This commit is contained in:
parent
3a59c833f1
commit
926d4ebb28
@ -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…
Reference in New Issue
Block a user