Skip to content

Commit

Permalink
fix undefined variable (cocos#4110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jareguo authored Mar 27, 2019
1 parent 8a38aba commit 406ce31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/renderer/core/program-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default class ProgramLib {
if (errors) {
let vertLines = vert.split('\n');
let fragLines = frag.split('\n');
let defineLength = Object.keys(defines).length;
let defineLength = Object.keys(defineList).length;
errors.forEach(err => {
let line = err.line - 1;
let originLine = err.line - defineLength;
Expand Down

0 comments on commit 406ce31

Please sign in to comment.