Browse Source

Use warnOnce to report unsupported extensions (#28242)

Raoul v. R 1 year ago
parent
commit
b8198a746b
1 changed files with 3 additions and 1 deletions
  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 ) {
 function WebGLExtensions( gl ) {
 
 
 	const extensions = {};
 	const extensions = {};
@@ -66,7 +68,7 @@ function WebGLExtensions( gl ) {
 
 
 			if ( extension === null ) {
 			if ( extension === null ) {
 
 
-				console.warn( 'THREE.WebGLRenderer: ' + name + ' extension not supported.' );
+				warnOnce( 'THREE.WebGLRenderer: ' + name + ' extension not supported.' );
 
 
 			}
 			}