Browse Source

not iterable fix

Gregg Tavares 5 years ago
parent
commit
8ca9514ad6
1 changed files with 1 additions and 1 deletions
  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;