]> git.sesse.net Git - movit/blobdiff - effect_chain_test.cpp
Fix an issue where the last pass would have been rendered with the sRGB flag set...
[movit] / effect_chain_test.cpp
index cb30d4d2e8a736c009c1381d5953fd41da4eb6e0..bbb58a0587409d6cca03d867e110b34dee6c6a3c 100644 (file)
@@ -1319,6 +1319,9 @@ TEST(EffectChainTest, sRGBIntermediate) {
            << "Expected sRGB not to be able to represent 0.5 exactly (got " << out_data[1] << ")";
        EXPECT_LT(fabs(out_data[1] - data[1]), 0.1f)
            << "Expected sRGB to be able to represent 0.5 approximately (got " << out_data[1] << ")";
+
+       // This state should have been preserved.
+       EXPECT_FALSE(glIsEnabled(GL_FRAMEBUFFER_SRGB));
 }
 
 // An effect that is like IdentityEffect, but also does not require linear light.