MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / dampenError

Function dampenError

test/reftest.js:60–62  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

58 // Allow each pixel R,G,B component to be off by a few units to account for possible shading
59 // differences between GPUs.
60 function dampenError(error) {
61 return Math.max(error-2, 0);
62 }
63
64 var total = 0;
65 var width = img.width;

Callers 1

doReftestFunction · 0.85

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected