فهرست منبع

Updated builds.

Mr.doob 5 سال پیش
والد
کامیت
64d4fb4a70
3فایلهای تغییر یافته به همراه360 افزوده شده و 360 حذف شده
  1. 2 2
      build/three.js
  2. 356 356
      build/three.min.js
  3. 2 2
      build/three.module.js

+ 2 - 2
build/three.js

@@ -24360,11 +24360,11 @@
 			_canvas.addEventListener( 'webglcontextlost', onContextLost, false );
 			_canvas.addEventListener( 'webglcontextlost', onContextLost, false );
 			_canvas.addEventListener( 'webglcontextrestored', onContextRestore, false );
 			_canvas.addEventListener( 'webglcontextrestored', onContextRestore, false );
 
 
-			_gl = _context || _canvas.getContext( 'webgl', contextAttributes ) || _canvas.getContext( 'experimental-webgl', contextAttributes );
+			_gl = _context || _canvas.getContext( 'webgl2', contextAttributes ) || _canvas.getContext( 'webgl', contextAttributes ) || _canvas.getContext( 'experimental-webgl', contextAttributes );
 
 
 			if ( _gl === null ) {
 			if ( _gl === null ) {
 
 
-				if ( _canvas.getContext( 'webgl' ) !== null ) {
+				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.' );
 
 

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 356 - 356
build/three.min.js


+ 2 - 2
build/three.module.js

@@ -24352,11 +24352,11 @@ function WebGLRenderer( parameters ) {
 		_canvas.addEventListener( 'webglcontextlost', onContextLost, false );
 		_canvas.addEventListener( 'webglcontextlost', onContextLost, false );
 		_canvas.addEventListener( 'webglcontextrestored', onContextRestore, false );
 		_canvas.addEventListener( 'webglcontextrestored', onContextRestore, false );
 
 
-		_gl = _context || _canvas.getContext( 'webgl', contextAttributes ) || _canvas.getContext( 'experimental-webgl', contextAttributes );
+		_gl = _context || _canvas.getContext( 'webgl2', contextAttributes ) || _canvas.getContext( 'webgl', contextAttributes ) || _canvas.getContext( 'experimental-webgl', contextAttributes );
 
 
 		if ( _gl === null ) {
 		if ( _gl === null ) {
 
 
-			if ( _canvas.getContext( 'webgl' ) !== null ) {
+			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.' );
 
 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است