提交 146b9370 编写于 作者: M Mr.doob

WebGLRenderer: Console logging on contextlost/restored.

上级 dfa47eb3
......@@ -538,16 +538,20 @@ function WebGLRenderer( parameters ) {
event.preventDefault();
console.log( 'THREE.WebGLRenderer: Context Lost.' );
_isContextLost = true;
}
function onContextRestore( event ) {
initGLContext();
console.log( 'THREE.WebGLRenderer: Context Restored.' );
_isContextLost = false;
initGLContext();
}
function onMaterialDispose( event ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册