mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Merge pull request #72138 from clayjohn/GL-globals
Properly append global uniform buffer name in gl_compatibility shaders
This commit is contained in:
@@ -8285,6 +8285,10 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
||||
_set_error(vformat(RTR("Uniform instances are not yet implemented for '%s' shaders."), shader_type_identifier));
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
|
||||
_set_error(RTR("Uniform instances are not supported in gl_compatibility shaders."));
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
if (uniform_scope == ShaderNode::Uniform::SCOPE_LOCAL) {
|
||||
tk = _get_token();
|
||||
if (tk.type != TK_UNIFORM) {
|
||||
|
||||
Reference in New Issue
Block a user