Gregg Tavares 5 年之前
父節點
當前提交
bee6b0637a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      threejs/resources/lessons-helper.js

+ 1 - 1
threejs/resources/lessons-helper.js

@@ -558,7 +558,7 @@
         };
         };
         const ctx = oldFn.apply(this, args);
         const ctx = oldFn.apply(this, args);
         if (!ctx) {
         if (!ctx) {
-          if (!isWebGL2) {
+          if (isWebGL2) {
             // three tries webgl2 then webgl1
             // three tries webgl2 then webgl1
             // so wait 1/2 a second before showing the failure
             // so wait 1/2 a second before showing the failure
             // message. If we get success on the same canvas
             // message. If we get success on the same canvas