Skip to content

Commit 6fa8a28

Browse files
authored
Disable dithering in framebuffer-render-to-layer.html. (#3768)
conformance2/rendering/framebuffer-render-to-layer.html was producing inconsistent results across devices for low-bit-depth formats with dithering enabled. Associated with crbug.com/488961394 .
1 parent 391a1f9 commit 6fa8a28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sdk/tests/conformance2/rendering/framebuffer-render-to-layer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@
319319
gl.framebufferTextureLayer(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, texture, level, slice);
320320
}
321321

322+
// Disable dithering for more reliable results with low-bit-depth formats
323+
gl.disable(gl.DITHER);
324+
322325
const targets = {};
323326
targets[gl.TEXTURE_2D] = { make: make2DTexture, attach: attach2DTexture, },
324327
targets[gl.TEXTURE_3D] = { make: make3DTexture, attach: attach3DTexture, },

0 commit comments

Comments
 (0)