Browse Source

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

Mr.doob 10 năm trước cách đây
mục cha
commit
cea255d27f
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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();