Commit: 163e6b348f9b7edc32f82512d7ce6ed3e78dd4ac
Author: Clément Foucault
Date:   Tue Mar 10 05:01:13 2020 +0100
Branches: master
https://developer.blender.org/rB163e6b348f9b7edc32f82512d7ce6ed3e78dd4ac

Cleanup: GPencil: Remove uneeded cast

===================================================================

M       source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to