X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.cpp;h=c21ac95943bcbbaa7a6b97e4def90bf6d70770ea;hb=142184354968cd1b1918f35772bb6f9f0b1351d6;hp=3a14a757431a88b2924a3430dcbf922fe1b3e73c;hpb=72afc695d201f9d2a0dcb316ec62f1610db5fa74;p=nageru diff --git a/mixer.cpp b/mixer.cpp index 3a14a75..c21ac95 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -212,7 +212,9 @@ Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards) check_error(); // This nearly always should be true. - global_flags.can_disable_srgb_decoder = epoxy_has_gl_extension("GL_EXT_texture_sRGB_decode"); + global_flags.can_disable_srgb_decoder = + epoxy_has_gl_extension("GL_EXT_texture_sRGB_decode") && + epoxy_has_gl_extension("GL_ARB_sampler_objects"); // Since we allow non-bouncing 4:2:2 YCbCrInputs, effective subpixel precision // will be halved when sampling them, and we need to compensate here.