X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fsampler.cpp;h=d45dee54242b9f6ef60b9c2fd7bacdc811a3b2ce;hb=df9119a9bf2d348a513c515ed92953353da97b54;hp=7560029c64642cdef978b147c9d2be5e4263bafe;hpb=4365124bd39bd6edbda6eaef64ec72a1a10565f8;p=libs%2Fgl.git diff --git a/source/core/sampler.cpp b/source/core/sampler.cpp index 7560029c..d45dee54 100644 --- a/source/core/sampler.cpp +++ b/source/core/sampler.cpp @@ -46,13 +46,6 @@ void Sampler::set_max_anisotropy(float a) dirty_params |= MAX_ANISOTROPY; } -void Sampler::set_wrap(TextureWrap w) -{ - set_wrap_s(w); - set_wrap_t(w); - set_wrap_r(w); -} - void Sampler::set_wrap_s(TextureWrap w) { wrap_s = w; @@ -71,6 +64,13 @@ void Sampler::set_wrap_r(TextureWrap w) dirty_params |= WRAP_R; } +void Sampler::set_wrap(TextureWrap w) +{ + set_wrap_s(w); + set_wrap_t(w); + set_wrap_r(w); +} + void Sampler::set_border_color(const Color &c) { border_color = c;