Explorar o código

Use warnOnce to report unsupported extensions (#28242)

Raoul v. R hai 1 ano
pai
achega
b8198a746b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/renderers/webgl/WebGLExtensions.js

+ 3 - 1
src/renderers/webgl/WebGLExtensions.js

@@ -1,3 +1,5 @@
+import { warnOnce } from '../../utils.js';
+
 function WebGLExtensions( gl ) {
 
 	const extensions = {};
@@ -66,7 +68,7 @@ function WebGLExtensions( gl ) {
 
 			if ( extension === null ) {
 
-				console.warn( 'THREE.WebGLRenderer: ' + name + ' extension not supported.' );
+				warnOnce( 'THREE.WebGLRenderer: ' + name + ' extension not supported.' );
 
 			}