diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-03-10 07:01:13 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-03-10 07:01:13 +0300 |
commit | 163e6b348f9b7edc32f82512d7ce6ed3e78dd4ac (patch) | |
tree | ea22da5a1e1fd6b9ad73e26d1f7a51e19ab8f64a /source/blender/draw/engines/gpencil | |
parent | 71712d828d9490f58ab08e17f0f2d6260de3ef94 (diff) |
Cleanup: GPencil: Remove uneeded cast
Diffstat (limited to 'source/blender/draw/engines/gpencil')
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl index 5e84b3592e4..b8b60a8f0c9 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl @@ -362,7 +362,7 @@ void color_output(vec4 stroke_col, vec4 vert_col, float vert_strength, float mix void stroke_vertex() { - int m = int(ma1.x); + int m = ma1.x; bool is_dot = false; bool is_squares = false; @@ -538,7 +538,7 @@ void fill_vertex() finalPos = wpos; # ifdef GP_MATERIAL_BUFFER_LEN - int m = int(ma1.x); + int m = ma1.x; vec4 fill_col = MATERIAL(m).fill_color; float mix_tex = MATERIAL(m).fill_texture_mix; |