Skip to content

Commit

Permalink
cleanup: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Oct 29, 2023
1 parent f757c7c commit 513ba7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/workload-simulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ <h2><center>Web graphics workload simulator</center></h2>
gl.shaderSource(shader, source);
gl.compileShader(shader);
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS))
console.log(gl.getShaderInfoLog(shader));
console.error(gl.getShaderInfoLog(shader));
gl.attachShader(prog, shader);
}
compileShader(vsSource, gl.VERTEX_SHADER);
Expand All @@ -1021,7 +1021,7 @@ <h2><center>Web graphics workload simulator</center></h2>
gl.bindAttribLocation(prog, i, attribs[i]);
gl.linkProgram(prog);
if (!gl.getProgramParameter(prog, gl.LINK_STATUS))
console.log(gl.getProgramInfoLog(prog));
console.error(gl.getProgramInfoLog(prog));
for (const attrib of attribs)
prog[attrib] = gl.getAttribLocation(prog, attrib);
for (const uniform of uniforms)
Expand Down
1 change: 0 additions & 1 deletion src/sample/samplerParameters/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ const init: SampleInit = async ({ canvas, pageState, gui }) => {
const kScaleFactor = Math.floor(kCanvasLayoutDevicePixels / kCanvasSize);
const kCanvasDevicePixels = kScaleFactor * kCanvasSize;
const kCanvasCSSSize = kCanvasDevicePixels / devicePixelRatio;
console.log(kCanvasDevicePixels, kCanvasCSSSize);
canvas.style.imageRendering = 'pixelated';
canvas.width = canvas.height = kCanvasSize;
canvas.style.minWidth = canvas.style.maxWidth = kCanvasCSSSize + 'px';
Expand Down

0 comments on commit 513ba7e

Please sign in to comment.