Skip to content

Commit

Permalink
Reset registration_sequence when cloning a material
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed May 19, 2021
1 parent 1ab150f commit cc2fb11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/refresh/vkpt/material.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ pbr_material_t *MAT_CloneForRadiance(pbr_material_t *src_mat, int radiance)
mat->flags &= ~MATERIAL_INDEX_MASK;
mat->flags |= index;
mat->flags |= MATERIAL_FLAG_LIGHT;
mat->registration_sequence = 0;
mat->emissive_scale = radiance * 0.001f;

return mat;
Expand Down

0 comments on commit cc2fb11

Please sign in to comment.