X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr_input_test.cpp;h=a1415c98eacd184a1f43faa7ff384122288ef16e;hp=adfdeb95ca46c898d8bd0b75c1c1cf87d7675415;hb=9be82157cfc320d6669d82ab9057862067b77325;hpb=f34b1c36acd27944f00885edfc55363432bfec8e diff --git a/ycbcr_input_test.cpp b/ycbcr_input_test.cpp index adfdeb9..a1415c9 100644 --- a/ycbcr_input_test.cpp +++ b/ycbcr_input_test.cpp @@ -1004,16 +1004,16 @@ TEST(YCbCrInputTest, TenBitPlanar) { class MipmapNeedingEffect : public Effect { public: MipmapNeedingEffect() {} - virtual bool needs_mipmaps() const { return true; } + MipmapRequirements needs_mipmaps() const override { return NEEDS_MIPMAPS; } // To be allowed to mess with the sampler state. - virtual bool needs_texture_bounce() const { return true; } + bool needs_texture_bounce() const override { return true; } - virtual string effect_type_id() const { return "MipmapNeedingEffect"; } - string output_fragment_shader() { return read_file("mipmap_needing_effect.frag"); } - virtual void inform_added(EffectChain *chain) { this->chain = chain; } + string effect_type_id() const override { return "MipmapNeedingEffect"; } + string output_fragment_shader() override { return read_file("mipmap_needing_effect.frag"); } + void inform_added(EffectChain *chain) override { this->chain = chain; } - void set_gl_state(GLuint glsl_program_num, const string& prefix, unsigned *sampler_num) + void set_gl_state(GLuint glsl_program_num, const string& prefix, unsigned *sampler_num) override { Node *self = chain->find_node_for_effect(this); glActiveTexture(chain->get_input_sampler(self, 0));