1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-05 02:42:01 +00:00

Add missing null check on image binding (#1632)

This commit is contained in:
gdkchan 2020-10-21 09:06:13 -03:00 committed by GitHub
parent 2dcc6333f8
commit efa77a2415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,7 +304,7 @@ namespace Ryujinx.Graphics.Gpu.Image
Format format = binding.Format; Format format = binding.Format;
if (format == 0) if (format == 0 && texture != null)
{ {
format = texture.Format; format = texture.Format;
} }