X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frendertarget.cpp;h=7bdac6703e3554e60162a90839139c1f4efba4f3;hb=dbc91b65728ab9c0e574bb1127cfe4d2da55de7f;hp=7b603252b6e1c97f0b80ad953734147e6c8efcc2;hpb=1863f17c5c5563be8492d7f01e5c613a740ea1e9;p=libs%2Fgl.git diff --git a/source/render/rendertarget.cpp b/source/render/rendertarget.cpp index 7b603252..7bdac670 100644 --- a/source/render/rendertarget.cpp +++ b/source/render/rendertarget.cpp @@ -148,9 +148,6 @@ void RenderTarget::init(unsigned w, unsigned h, unsigned s, const RenderTargetFo { tgt.texture = new Texture2D; tgt.texture->storage(pf, width, height, 1); - Sampler &sampler = tgt.texture->get_default_sampler(); - sampler.set_filter(NEAREST); - sampler.set_wrap(CLAMP_TO_EDGE); fbo.attach(att, *tgt.texture); } buffers.push_back(tgt); @@ -170,15 +167,6 @@ RenderTarget::~RenderTarget() } } -void RenderTarget::set_texture_filter(TextureFilter filt) -{ - if(!samples) - { - for(vector::iterator i=buffers.begin(); i!=buffers.end(); ++i) - i->texture->get_default_sampler().set_filter(filt); - } -} - const Texture2D &RenderTarget::get_target_texture(unsigned i) const { if(i>=buffers.size())