Преглед изворни кода

WebGPURenderer: Ignore diagnostic() method in Deno (#29522)

* Ignore `diagnostic()` method in deno

* fix deno webgpu diagnostic

* Ignore `diagnostic()` method in deno
Ivancing пре 1 година
родитељ
комит
fb5406d850
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/renderers/webgpu/nodes/WGSLNodeBuilder.js

+ 1 - 1
src/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -152,7 +152,7 @@ if ( /Windows/g.test( navigator.userAgent ) ) {
 
 let diagnostics = '';
 
-if ( /Firefox/g.test( navigator.userAgent ) !== true ) {
+if ( /Firefox|Deno/g.test( navigator.userAgent ) !== true ) {
 
 	diagnostics += 'diagnostic( off, derivative_uniformity );\n';
 

粤ICP备19079148号