diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-10-04 14:35:28 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 14:35:28 -0300 |
| commit | 75f4b1ff2de8d8bd57dd84f2c3cb4cb3c353b93b (patch) | |
| tree | 82547c70756109b9b7e3d882a704e4ea50bc8aab | |
| parent | f7aaea430025ddb114a31712cb791ea5141e8d56 (diff) | |
Relax sampler pool requirement (#2703)
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs index d7691e13..dff32dc6 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs @@ -344,12 +344,6 @@ namespace Ryujinx.Graphics.Gpu.Image return; } - if (samplerPool == null) - { - Logger.Error?.Print(LogClass.Gpu, $"Shader stage \"{stage}\" uses textures, but sampler pool was not set."); - return; - } - for (int index = 0; index < textureCount; index++) { TextureBindingInfo bindingInfo = _textureBindings[stageIndex][index]; @@ -405,7 +399,7 @@ namespace Ryujinx.Graphics.Gpu.Image _channel.BufferManager.SetBufferTextureStorage(hostTexture, texture.Range.GetSubRange(0).Address, texture.Size, bindingInfo, bindingInfo.Format, false); } - Sampler sampler = samplerPool.Get(samplerId); + Sampler sampler = samplerPool?.Get(samplerId); ISampler hostSampler = sampler?.HostSampler; |
