Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Jun 8, 2018
1 parent 6531bb7 commit 862d0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/webgl/WglShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,12 @@ class WglCompiledShader {
let info = gl.getShaderInfoLog(shader);
if (info !== '') {
let ignored = false;
for (let term in Config.IGNORED_WEBGL_INFO_TERMS) {
for (let term of Config.IGNORED_WEBGL_INFO_TERMS) {
if (info.indexOf(term)) {
ignored = true;
}
}
if (!ignored) {
console.log(Config.IGNORED_WEBGL_INFO_TERMS);
for (let term in Config.IGNORED_WEBGL_INFO_TERMS) {
console.log(term, info.indexOf(term));
}
console.warn("WebGLShader: gl.getShaderInfoLog() wasn't empty: " + gl.getShaderInfoLog(shader));
console.warn("Source code was: " + sourceCode);
}
Expand Down
3 changes: 1 addition & 2 deletions test/TestUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,8 @@ function isWebGLSupportPresent() {
__onlyPartialWebGLSupportPresent = ctx.getShaderInfoLog(shader).indexOf(term) !== -1;
if (__onlyPartialWebGLSupportPresent) {
Config.IGNORED_WEBGL_INFO_TERMS.push(term);
console.log('Only partial WebGL support is present. Some tests may fail and be ignored.')
}
console.log('__onlyPartialWebGLSupportPresent', __onlyPartialWebGLSupportPresent);
console.log(Config.IGNORED_WEBGL_INFO_TERMS);
}
}
}
Expand Down

0 comments on commit 862d0ae

Please sign in to comment.