               var srgbColor1 = [srgbPixels1[index], srgbPixels1[index + 1], srgbPixels1[index + 2], srgbPixels1[index + 3]];
                if (checkPixel(srgbColor1, expectedSRGBColor) == false) {
                    failed = true;
                    debug("Pixels comparison failed for the 2nd sRGB image. Pixel at [" + jj + ", " + ii + "] should be (" + expectedSRGBColor + "), but the actual color is (" + srgbColor1 + ")");
                }
            }

            if (drawbuffersFormatMask & linearM