浏览代码

WebGLRenderer: Added getContextAttributes for awareness reasons. See #6899.

Mr.doob 10 年之前
父节点
当前提交
cea255d27f
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/renderers/WebGLRenderer.js

+ 6 - 0
src/renderers/WebGLRenderer.js

@@ -381,6 +381,12 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	};
 
+	this.getContextAttributes = function () {
+
+		return _gl.getContextAttributes();
+
+	};
+
 	this.forceContextLoss = function () {
 
 		extensions.get( 'WEBGL_lose_context' ).loseContext();