diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-07 16:25:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-08 12:56:58 +0300 |
commit | 1fd1d061ac28bb17216b647ca4d1b6373fd4435a (patch) | |
tree | a6ad088141a386812b99b9c958f24ac42b6f4a07 | |
parent | 847f028b715f20aea1021220e18da1183f45c131 (diff) |
Clay: Don't use hardcoded constant in the string
Stringify the actual constant instead.
-rw-r--r-- | source/blender/draw/engines/clay/clay_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/clay/clay_engine.c b/source/blender/draw/engines/clay/clay_engine.c index d7af8fb5398..fe8da3c4888 100644 --- a/source/blender/draw/engines/clay/clay_engine.c +++ b/source/blender/draw/engines/clay/clay_engine.c @@ -602,7 +602,7 @@ static DRWShadingGroup *CLAY_hair_shgroup_create(DRWPass *pass, int id) if (!e_data.hair_sh) { e_data.hair_sh = DRW_shader_create( datatoc_clay_particle_vert_glsl, NULL, datatoc_clay_particle_strand_frag_glsl, - "#define MAX_MATERIAL 512\n"); + "#define MAX_MATERIAL " STRINGIFY(MAX_CLAY_MAT) "\n" ); } DRWShadingGroup *grp = DRW_shgroup_create(e_data.hair_sh, pass); |