File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ cc.UniformValue.prototype = {
64
64
} ,
65
65
66
66
setVec2v : function setVec2v ( value ) {
67
- this . _value = value ;
67
+ this . _value = value . slice ( 0 ) ;
68
68
this . _type = types . GL_FLOAT_VEC2 ;
69
69
} ,
70
70
@@ -74,7 +74,7 @@ cc.UniformValue.prototype = {
74
74
} ,
75
75
76
76
setVec3v : function setVec3v ( value ) {
77
- this . _value = value ;
77
+ this . _value = value . slice ( 0 ) ;
78
78
this . _type = types . GL_FLOAT_VEC3 ;
79
79
} ,
80
80
@@ -84,12 +84,12 @@ cc.UniformValue.prototype = {
84
84
} ,
85
85
86
86
setVec4v : function setVec4v ( value ) {
87
- this . _value = value ;
87
+ this . _value = value . slice ( 0 ) ;
88
88
this . _type = types . GL_FLOAT_VEC4 ;
89
89
} ,
90
90
91
91
setMat4 : function setMat4 ( value ) {
92
- this . _value = value ;
92
+ this . _value = value . slice ( 0 ) ;
93
93
this . _type = types . GL_FLOAT_MAT4 ;
94
94
} ,
95
95
You can’t perform that action at this time.
0 commit comments