mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
metal: fix Texture:setWrap/setFilter
This commit is contained in:
@@ -254,6 +254,9 @@ void Texture::readbackImageData(love::image::ImageData *imagedata, int slice, in
|
|||||||
|
|
||||||
void Texture::setSamplerState(const SamplerState &s)
|
void Texture::setSamplerState(const SamplerState &s)
|
||||||
{ @autoreleasepool {
|
{ @autoreleasepool {
|
||||||
|
// Base class does common validation and assigns samplerState.
|
||||||
|
love::graphics::Texture::setSamplerState(s);
|
||||||
|
|
||||||
sampler = Graphics::getInstance()->getCachedSampler(s);
|
sampler = Graphics::getInstance()->getCachedSampler(s);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user