mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 16:36:55 +02:00
Merge pull request #12854 from birarda/bug/hdr-format-static
fix skybox bake assert on HDR_FORMAT static order initialization
This commit is contained in:
commit
91d7990d7a
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ bool DEV_DECIMATE_TEXTURES = false;
|
|||
std::atomic<size_t> DECIMATED_TEXTURE_COUNT{ 0 };
|
||||
std::atomic<size_t> RECTIFIED_TEXTURE_COUNT{ 0 };
|
||||
|
||||
static const auto HDR_FORMAT = gpu::Element::COLOR_R11G11B10;
|
||||
// we use a ref here to work around static order initialization
|
||||
// possibly causing the element not to be constructed yet
|
||||
static const auto& HDR_FORMAT = gpu::Element::COLOR_R11G11B10;
|
||||
|
||||
static std::atomic<bool> compressColorTextures { false };
|
||||
static std::atomic<bool> compressNormalTextures { false };
|
||||
|
|
Loading…
Reference in a new issue