mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:04:13 +02:00
use ref for HDR_FORMAT to avoid static order
This commit is contained in:
parent
d8f0cfa89a
commit
016a6dcd84
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,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