rsFormat);

    var tex_srgb0 = gl.createTexture();
    var tex_srgb1 = gl.createTexture();
    var tex_linear0 = gl.createTexture();
    var tex_linear1 = gl.createTexture();
    var tex_read = gl.createTexture();
    var fbo_read = gl.createFramebuffer();
    var fbo_draw = gl.createFramebuffer();

    // Create read buffer and feed data to the read buffer
    var size = 8;
    var data = new Uint8Array(size * size * 4);
    var color = [250, 100, 15, 255];
    for (var ii = 0; ii < size * size * 4; ii +=