Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended.
This commit is contained in:
parent
3942c939e3
commit
9f0c6a6009
7 changed files with 19 additions and 12 deletions
|
|
@ -184,7 +184,8 @@ void ParticlesMaterial::_update_shader() {
|
|||
} break;
|
||||
case EMISSION_SHAPE_DIRECTED_POINTS: {
|
||||
code += "uniform sampler2D emission_texture_normal : hint_black;\n";
|
||||
} //fallthrough
|
||||
FALLTHROUGH;
|
||||
}
|
||||
case EMISSION_SHAPE_POINTS: {
|
||||
code += "uniform sampler2D emission_texture_points : hint_black;\n";
|
||||
code += "uniform int emission_texture_point_count;\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue