@@ -563,7 +563,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
563563 var pointBuffer = this . _renderContext . createBuffer ( ) ;
564564 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
565565 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , new Float32Array ( [ point . x , point . y ] ) , this . _renderContext . STATIC_DRAW ) ;
566- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
566+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
567567
568568 this . _shader . use ( ) ;
569569 this . _shader . setUniformForModelViewProjectionMatrix ( ) ;
@@ -594,7 +594,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
594594 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
595595 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , this . _pointsToTypeArray ( points ) , this . _renderContext . STATIC_DRAW ) ;
596596
597- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
597+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
598598 this . _shader . use ( ) ;
599599 this . _shader . setUniformForModelViewProjectionMatrix ( ) ;
600600
@@ -637,7 +637,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
637637 this . _shader . setUniformLocationWith4fv ( this . _colorLocation , [ this . _color . r , this . _color . g , this . _color . b , this . _color . a ] , 1 ) ;
638638 cc . CHECK_GL_ERROR_DEBUG ( ) ;
639639
640- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
640+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
641641 cc . CHECK_GL_ERROR_DEBUG ( ) ;
642642
643643 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
@@ -694,7 +694,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
694694 var pointBuffer = this . _renderContext . createBuffer ( ) ;
695695 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
696696 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , this . _pointsToTypeArray ( vertices ) , this . _renderContext . STATIC_DRAW ) ;
697- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
697+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
698698
699699 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
700700 this . _renderContext . vertexAttribPointer ( cc . VERTEX_ATTRIB_POSITION , 2 , this . _renderContext . FLOAT , false , 0 , 0 ) ;
@@ -725,7 +725,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
725725 var pointBuffer = this . _renderContext . createBuffer ( ) ;
726726 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
727727 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , this . _pointsToTypeArray ( poli ) , this . _renderContext . STATIC_DRAW ) ;
728- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
728+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
729729
730730 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
731731 this . _renderContext . vertexAttribPointer ( cc . VERTEX_ATTRIB_POSITION , 2 , this . _renderContext . FLOAT , false , 0 , 0 ) ;
@@ -773,7 +773,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
773773 var pointBuffer = this . _renderContext . createBuffer ( ) ;
774774 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
775775 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , vertices , this . _renderContext . STATIC_DRAW ) ;
776- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
776+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
777777
778778 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
779779 this . _renderContext . vertexAttribPointer ( cc . VERTEX_ATTRIB_POSITION , 2 , this . _renderContext . FLOAT , false , 0 , 0 ) ;
@@ -811,7 +811,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
811811 var pointBuffer = this . _renderContext . createBuffer ( ) ;
812812 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
813813 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , vertices , this . _renderContext . STATIC_DRAW ) ;
814- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
814+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
815815
816816 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
817817 this . _renderContext . vertexAttribPointer ( cc . VERTEX_ATTRIB_POSITION , 2 , this . _renderContext . FLOAT , false , 0 , 0 ) ;
@@ -850,7 +850,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
850850 var pointBuffer = this . _renderContext . createBuffer ( ) ;
851851 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
852852 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , vertices , this . _renderContext . STATIC_DRAW ) ;
853- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
853+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
854854
855855 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
856856 this . _renderContext . vertexAttribPointer ( cc . VERTEX_ATTRIB_POSITION , 2 , this . _renderContext . FLOAT , false , 0 , 0 ) ;
@@ -913,7 +913,7 @@ cc.DrawingPrimitiveWebGL = cc.DrawingPrimitive.extend({
913913 var pointBuffer = this . _renderContext . createBuffer ( ) ;
914914 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
915915 this . _renderContext . bufferData ( this . _renderContext . ARRAY_BUFFER , vertices , this . _renderContext . STATIC_DRAW ) ;
916- cc . glEnableVertexAttribs ( cc . kCCVertexAttribFlag_Position ) ;
916+ cc . glEnableVertexAttribs ( cc . VERTEX_ATTRIBFLAG_POSITION ) ;
917917
918918 this . _renderContext . bindBuffer ( this . _renderContext . ARRAY_BUFFER , pointBuffer ) ;
919919 this . _renderContext . vertexAttribPointer ( cc . VERTEX_ATTRIB_POSITION , 2 , this . _renderContext . FLOAT , false , 0 , 0 ) ;
0 commit comments