瀏覽代碼

Update WebGLUtils.js

Michael Herzog 3 年之前
父節點
當前提交
2463157400
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/renderers/webgl/WebGLUtils.js

+ 2 - 0
src/renderers/webgl/WebGLUtils.js

@@ -45,6 +45,8 @@ function WebGLUtils( gl, extensions, capabilities ) {
 		if ( p === DepthStencilFormat ) return gl.DEPTH_STENCIL;
 		if ( p === RedFormat ) return gl.RED;
 
+		// @deprecated since r137
+
 		if ( p === RGBFormat ) {
 
 			console.warn( 'THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228' );