virtualx-engine/modules/dds
Rémi Verschelde d8b543c991 DDS: Fix loading files without DDSD_CAPS or DDSD_PIXELFORMAT
MSDN says:

> When you write .dds files, you should set the DDSD_CAPS and
> DDSD_PIXELFORMAT flags, and for mipmapped textures you should also
> set the DDSD_MIPMAPCOUNT flag. However, when you read a .dds file,
> you should not rely on the DDSD_CAPS, DDSD_PIXELFORMAT, and
> DDSD_MIPMAPCOUNT flags being set because some writers of such a file
> might not set these flags.

https://docs.microsoft.com/en-us/windows/win32/direct3ddds/dds-header

¯\_(ツ)_/¯

Fixes #39516.

(cherry picked from commit 0f21249a2d)
2020-06-18 11:29:28 +02:00
..
config.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
register_types.cpp
register_types.h
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
texture_loader_dds.cpp DDS: Fix loading files without DDSD_CAPS or DDSD_PIXELFORMAT 2020-06-18 11:29:28 +02:00
texture_loader_dds.h