Skip to content

Commit

Permalink
Fail early if shader mode is invalid in dummy renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Feb 23, 2024
1 parent ae51db7 commit a382e95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servers/rendering/dummy/storage/material_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void MaterialStorage::shader_set_code(RID p_shader, const String &p_code) {
new_mode = RS::SHADER_FOG;
} else {
new_mode = RS::SHADER_MAX;
ERR_FAIL_MSG("Shader type " + mode_string + " not supported in Dummy renderer.");
}
ShaderCompiler::IdentifierActions actions;
actions.uniforms = &shader->uniforms;
Expand Down

0 comments on commit a382e95

Please sign in to comment.