Explorar o código

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

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
cea255d27f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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();