diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-25 21:44:31 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-25 21:44:44 +0300 |
commit | 420f30efe7ef047ea39f94033bc0182063a5adcb (patch) | |
tree | 1649a6c6a703b8ebff577cc34638b3652dde710e /source | |
parent | 7021bd527380b4d87cf48057f0039509326b03dd (diff) |
Fix T62930 Eevee: Wireframe input node not working with certain compiler
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index c94668cf6e9..cf770599fc7 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -1204,8 +1204,8 @@ static char *code_generate_geometry(ListBase *nodes, const char *geom_code, cons BLI_dynstr_append(ds, "#ifdef HAIR_SHADER\n"); BLI_dynstr_append(ds, "\tbarycentricTexCo = barycentricTexCog[vert];\n"); BLI_dynstr_append(ds, "#else\n"); - BLI_dynstr_append(ds, "\tbarycentricTexCo.x = float((vert %% 3) == 0);\n"); - BLI_dynstr_append(ds, "\tbarycentricTexCo.y = float((vert %% 3) == 1);\n"); + BLI_dynstr_append(ds, "\tbarycentricTexCo.x = float((vert % 3) == 0);\n"); + BLI_dynstr_append(ds, "\tbarycentricTexCo.y = float((vert % 3) == 1);\n"); BLI_dynstr_append(ds, "#endif\n"); } |