Selaa lähdekoodia

Add missing null check on image binding (#1632)

gdkchan 5 vuotta sitten
vanhempi
sitoutus
efa77a2415
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs

+ 1 - 1
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;
                     }