Skip to content

Commit eaa5199

Browse files
committed
Fix glProgramState undefined issue in DrawingPrimitives
1 parent cd3cb00 commit eaa5199

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos2d/core/CCDrawingPrimitivesWebGL.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ cc.DrawingPrimitiveWebGL = cc.Class.extend(/** @lends cc.DrawingPrimitiveWebGL#
6161
_t._shader = cc.shaderCache.programForKey(cc.SHADER_POSITION_UCOLOR);
6262
_t._shader._addUniformLocation(this._colorLocation);
6363
_t._shader._addUniformLocation(this._pointSizeLocation);
64+
_t._glProgramState = new cc.GLProgramState(_t._shader);
6465

6566
_t._initialized = true;
6667
}

0 commit comments

Comments
 (0)