Skip to content

Commit c16cd4b

Browse files
committed
Remove useless "_drawFullScreenQuadClearStencil" function
1 parent 3aa4239 commit c16cd4b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

extensions/ccui/layouts/UILayoutWebGLRenderCmd.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,7 @@
118118
var gl = ctx || cc._renderContext;
119119
gl.disable(gl.SCISSOR_TEST);
120120
};
121-
122-
proto._drawFullScreenQuadClearStencil = function(){
123-
// draw a fullscreen solid rectangle to clear the stencil buffer
124-
cc.kmGLMatrixMode(cc.KM_GL_PROJECTION);
125-
cc.kmGLPushMatrix();
126-
cc.kmGLLoadIdentity();
127-
cc.kmGLMatrixMode(cc.KM_GL_MODELVIEW);
128-
cc.kmGLPushMatrix();
129-
cc.kmGLLoadIdentity();
130-
cc._drawingUtil.drawSolidRect(cc.p(-1,-1), cc.p(1,1), cc.color(255, 255, 255, 255));
131-
cc.kmGLMatrixMode(cc.KM_GL_PROJECTION);
132-
cc.kmGLPopMatrix();
133-
cc.kmGLMatrixMode(cc.KM_GL_MODELVIEW);
134-
cc.kmGLPopMatrix();
135-
};
136-
121+
137122
proto.rebindStencilRendering = function(stencil){};
138123

139124
proto.transform = function(parentCmd, recursive){

0 commit comments

Comments
 (0)