File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ cc.UniformValue = function (uniform, glprogram) {
43
43
this . _glprogram = glprogram ;
44
44
45
45
this . _value = null ;
46
- this . _currentBoundValue = null ;
47
46
this . _type = - 1 ;
48
47
} ;
49
48
@@ -105,12 +104,6 @@ cc.UniformValue.prototype = {
105
104
} ,
106
105
107
106
apply : function apply ( ) {
108
- if ( this . _currentBoundValue === this . _value
109
- && this . _type !== types . GL_CALLBACK ) {
110
- return ;
111
- }
112
-
113
- this . _currentBoundValue = this . _value ;
114
107
switch ( this . _type ) {
115
108
case types . GL_INT :
116
109
this . _glprogram . setUniformLocationWith1i ( this . _uniform . location , this . _value ) ;
@@ -180,10 +173,7 @@ cc.GLProgramState.prototype = {
180
173
}
181
174
182
175
for ( var i = 0 ; i < this . _uniforms . length ; ++ i ) {
183
- var uniform = this . _uniforms [ i ] ;
184
- if ( uniform . _currentBoundValue !== uniform . _value ) {
185
- uniform . apply ( ) ;
186
- }
176
+ this . _uniforms [ i ] . apply ( ) ;
187
177
}
188
178
} ,
189
179
You can’t perform that action at this time.
0 commit comments