X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain_test.cpp;fp=effect_chain_test.cpp;h=bbb58a0587409d6cca03d867e110b34dee6c6a3c;hp=cb30d4d2e8a736c009c1381d5953fd41da4eb6e0;hb=3a918307fb46478ea8080222a58406cfe04a7cbe;hpb=f0d64ec5bf2e3ccfc20d7cfe8a6843b32d07ffad diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index cb30d4d..bbb58a0 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -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.