diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-10-21 09:06:13 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-21 14:06:13 +0200 |
| commit | efa77a241555efa3ddfa3425919211ce6c8134a7 (patch) | |
| tree | 891180f777f02e337e0e77297fbbe6ba5e9bddf0 | |
| parent | 2dcc6333f8cbb959293832f52857bdaeab1918bf (diff) | |
Add missing null check on image binding (#1632)
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs index e7800314..13a275b8 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs @@ -304,7 +304,7 @@ namespace Ryujinx.Graphics.Gpu.Image Format format = binding.Format; - if (format == 0) + if (format == 0 && texture != null) { format = texture.Format; } |
