j) * 4;
            if (drawbuffersFormatMask & srgbMask) {
                var srgbColor0 = [srgbPixels0[index], srgbPixels0[index + 1], srgbPixels0[index + 2], srgbPixels0[index + 3]];
                if (checkPixel(srgbColor0, expectedSRGBColor) == false) {
                    failed = true;
                    debug("Pixels comparison failed for the 1st sRGB image. Pixel at [" + jj + ", " + ii + "] should be (" + expectedSRGBColor + "), but the actual color is (" + srgbColor0 + ")");
                }
 