rShouldBe(gl, gl.NO_ERROR, "setup draw framebuffer should succeed");

    if (gl.checkFramebufferStatus(gl.DRAW_FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE ||
        gl.checkFramebufferStatus(gl.READ_FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE) {
        testFailed("Framebuffer incomplete when setup draw framebuffer.");
        return;
    }

    // Blit to multiple draw buffers with srgb images and linear images
    var dstSize = size - 1;
    gl.blitFramebuffer(0, 0, size, size, 0, 0, dstSize, dstSize, gl.COLOR_