metal: fix texture sampler changes not affecting draws using shaders.

This commit is contained in:
Alex Szpakowski
2022-01-31 21:25:49 -04:00
parent 81791a3217
commit 6e49b1f901
3 changed files with 18 additions and 14 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ public:
struct TextureBinding
{
id<MTLTexture> texture;
id<MTLSamplerState> sampler;
// Indirect sampler ref in case Texture's sampler state changes.
Texture *samplerTexture;
bool isMainTexture;