Merge pull request #71764 from clayjohn/texture-binding
Decrement texture_binding count when using screen textures
This commit is contained in:
commit
65614d68eb
1 changed files with 3 additions and 0 deletions
|
@ -8697,14 +8697,17 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
||||||
case TK_HINT_SCREEN_TEXTURE: {
|
case TK_HINT_SCREEN_TEXTURE: {
|
||||||
new_hint = ShaderNode::Uniform::HINT_SCREEN_TEXTURE;
|
new_hint = ShaderNode::Uniform::HINT_SCREEN_TEXTURE;
|
||||||
--texture_uniforms;
|
--texture_uniforms;
|
||||||
|
--texture_binding;
|
||||||
} break;
|
} break;
|
||||||
case TK_HINT_NORMAL_ROUGHNESS_TEXTURE: {
|
case TK_HINT_NORMAL_ROUGHNESS_TEXTURE: {
|
||||||
new_hint = ShaderNode::Uniform::HINT_NORMAL_ROUGHNESS_TEXTURE;
|
new_hint = ShaderNode::Uniform::HINT_NORMAL_ROUGHNESS_TEXTURE;
|
||||||
--texture_uniforms;
|
--texture_uniforms;
|
||||||
|
--texture_binding;
|
||||||
} break;
|
} break;
|
||||||
case TK_HINT_DEPTH_TEXTURE: {
|
case TK_HINT_DEPTH_TEXTURE: {
|
||||||
new_hint = ShaderNode::Uniform::HINT_DEPTH_TEXTURE;
|
new_hint = ShaderNode::Uniform::HINT_DEPTH_TEXTURE;
|
||||||
--texture_uniforms;
|
--texture_uniforms;
|
||||||
|
--texture_binding;
|
||||||
} break;
|
} break;
|
||||||
case TK_FILTER_NEAREST: {
|
case TK_FILTER_NEAREST: {
|
||||||
new_filter = FILTER_NEAREST;
|
new_filter = FILTER_NEAREST;
|
||||||
|
|
Loading…
Reference in a new issue