提交 1fbe2bfd 编写于 作者: T timk

CanvasRenderer::setSize didn't clear _contextGlobalAlpha et al

上级 a03f7142
......@@ -87,6 +87,11 @@ THREE.CanvasRenderer = function () {
_clipRect.set( - _canvasWidthHalf, - _canvasHeightHalf, _canvasWidthHalf, _canvasHeightHalf );
_contextGlobalAlpha = 1;
_contextGlobalCompositeOperation = 0;
_contextStrokeStyle = null;
_contextFillStyle = null;
_contextLineWidth = 1;
};
this.setClearColor = function( hex, opacity ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册