From f7a0cae7f47c6fb9a80bf22ffd55281331c3aaef Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 22 May 2018 16:13:54 +1000 Subject: HiresTextures: Do not load compressed textures with unaligned dimensions D3D11 cannot handle block compressed textures where the first mip level is not a multiple of the block size. The simple fix for texture pack authors: leave these textures uncompressed. You can still use a .dds container. --- Source/Core/VideoCommon/HiresTextures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/HiresTextures.cpp') diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index adca2551db..79e71fa32b 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -335,7 +335,7 @@ std::unique_ptr HiresTexture::Load(const std::string& base_filenam // Try loading DDS textures first, that way we maintain compression of DXT formats. // TODO: Reduce the number of open() calls here. We could use one fd. Level level; - if (!LoadDDSTexture(level, filename_iter->second.path)) + if (!LoadDDSTexture(level, filename_iter->second.path, mip_level)) { File::IOFile file; file.Open(filename_iter->second.path, "rb"); -- cgit v1.2.3