You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Removed switch operator from GLES2 shader back-end
This commit is contained in:
@@ -4176,6 +4176,12 @@ Error ShaderLanguage::_parse_block(BlockNode *p_block, const Map<StringName, Bui
|
||||
_set_tkpos(pos); //rollback
|
||||
}
|
||||
} else if (tk.type == TK_CF_SWITCH) {
|
||||
|
||||
if (VisualServer::get_singleton()->is_low_end()) {
|
||||
_set_error("\"switch\" operator is supported only on high-end platform!");
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
|
||||
// switch() {}
|
||||
tk = _get_token();
|
||||
if (tk.type != TK_PARENTHESIS_OPEN) {
|
||||
|
||||
Reference in New Issue
Block a user