Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-05-07 16:25:21 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-05-08 12:56:58 +0300
commit1fd1d061ac28bb17216b647ca4d1b6373fd4435a (patch)
treea6ad088141a386812b99b9c958f24ac42b6f4a07
parent847f028b715f20aea1021220e18da1183f45c131 (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.c2
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);