Merge pull request #99622 from Chaosus/shader_fix_global_empty_type

Add `samplerExternalOES` type to shader globals
This commit is contained in:
Thaddeus Crews 2024-12-11 17:35:40 -06:00
commit b773fff5a4
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
3 changed files with 16 additions and 0 deletions

View file

@ -1868,6 +1868,8 @@ int RenderingServer::global_shader_uniform_type_get_shader_datatype(GlobalShader
return ShaderLanguage::TYPE_SAMPLER3D;
case RS::GLOBAL_VAR_TYPE_SAMPLERCUBE:
return ShaderLanguage::TYPE_SAMPLERCUBE;
case RS::GLOBAL_VAR_TYPE_SAMPLEREXT:
return ShaderLanguage::TYPE_SAMPLEREXT;
default:
return ShaderLanguage::TYPE_MAX; // Invalid or not found.
}