mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +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)
|
||||
{ @autoreleasepool {
|
||||
// Base class does common validation and assigns samplerState.
|
||||
love::graphics::Texture::setSamplerState(s);
|
||||
|
||||
sampler = Graphics::getInstance()->getCachedSampler(s);
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user