Gregg Tavares před 5 roky
rodič
revize
8ca9514ad6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      threejs/resources/webgl-debug-helper.js

+ 1 - 1
threejs/resources/webgl-debug-helper.js

@@ -544,7 +544,7 @@
     // Override the getError function with one that returns our saved results.
     if (wrapper.getError) {
       wrapper.getError = function() {
-        for (const err of glErrorShadow) {
+        for (const err of Object.keys(glErrorShadow)) {
           if (glErrorShadow[err]) {
             glErrorShadow[err] = false;
             return err;