From 807deb2c339312f70d79d47d79e78da995574acc Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Fri, 6 Jan 2023 20:46:11 -0500 Subject: [PATCH] Fix BC7 loading for textures without DDSD_CAPS/FMT --- src/Graphics/Resources/Texture.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Graphics/Resources/Texture.cs b/src/Graphics/Resources/Texture.cs index 190ac53..2781e55 100644 --- a/src/Graphics/Resources/Texture.cs +++ b/src/Graphics/Resources/Texture.cs @@ -272,14 +272,12 @@ namespace MoonWorks.Graphics const uint DDS_MAGIC = 0x20534444; const uint DDS_HEADERSIZE = 124; const uint DDS_PIXFMTSIZE = 32; - const uint DDSD_CAPS = 0x1; const uint DDSD_HEIGHT = 0x2; const uint DDSD_WIDTH = 0x4; const uint DDSD_PITCH = 0x8; - const uint DDSD_FMT = 0x1000; const uint DDSD_LINEARSIZE = 0x80000; const uint DDSD_REQ = ( - DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_FMT + DDSD_HEIGHT | DDSD_WIDTH ); const uint DDSCAPS_MIPMAP = 0x400000; const uint DDSCAPS_TEXTURE = 0x1000;