From 513ba7eff69778c9cd13ebbc5c50a68e520e4cf8 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sun, 29 Oct 2023 08:22:20 +0900 Subject: [PATCH] cleanup: remove console.log --- public/workload-simulator.html | 4 ++-- src/sample/samplerParameters/main.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/workload-simulator.html b/public/workload-simulator.html index a4eea86c..bd73ddb1 100644 --- a/public/workload-simulator.html +++ b/public/workload-simulator.html @@ -1012,7 +1012,7 @@

Web graphics workload simulator

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); @@ -1021,7 +1021,7 @@

Web graphics workload simulator

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) diff --git a/src/sample/samplerParameters/main.ts b/src/sample/samplerParameters/main.ts index 58600dba..ce05fc7c 100644 --- a/src/sample/samplerParameters/main.ts +++ b/src/sample/samplerParameters/main.ts @@ -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';