Explorar o código

WebGLRenderer: Clean up.

Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
f950832122
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/renderers/WebGLRenderer.js

+ 1 - 2
src/renderers/WebGLRenderer.js

@@ -208,8 +208,7 @@ function WebGLRenderer( parameters ) {
 
 
 		if ( _gl === null ) {
 		if ( _gl === null ) {
 
 
-			if ( _canvas.getContext( 'webgl2' ) || _canvas.getContext( 'webgl' ) ||
-				_canvas.getContext( 'experimental-webgl' ) ) {
+			if ( _canvas.getContext( 'webgl2' ) || _canvas.getContext( 'webgl' ) || _canvas.getContext( 'experimental-webgl' ) ) {
 
 
 				throw new Error( 'Error creating WebGL context with your selected attributes.' );
 				throw new Error( 'Error creating WebGL context with your selected attributes.' );