Skip to content

Commit 08855e3

Browse files
authored
Merge pull request #410 from Devsh-Graphics-Programming/format_promotion_bug
Fix issue with SFormatImageUsage ctor
2 parents b9cf8a7 + 55c73af commit 08855e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/nbl/video/IPhysicalDevice.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ class NBL_API2 IPhysicalDevice : public core::Interface, public core::Unmovable
358358

359359
SFormatImageUsage(core::bitflag<asset::IImage::E_USAGE_FLAGS> usages)
360360
: isInitialized(1),
361+
log2MaxSamples(0),
361362
sampledImage(usages.hasFlags(asset::IImage::EUF_SAMPLED_BIT)),
362363
storageImage(usages.hasFlags(asset::IImage::EUF_STORAGE_BIT)),
363364
transferSrc(usages.hasFlags(asset::IImage::EUF_TRANSFER_SRC_BIT)),
@@ -522,7 +523,7 @@ class NBL_API2 IPhysicalDevice : public core::Interface, public core::Unmovable
522523
struct FormatPromotionRequest
523524
{
524525
asset::E_FORMAT originalFormat = asset::EF_UNKNOWN;
525-
FORMAT_USAGE usages;
526+
FORMAT_USAGE usages = FORMAT_USAGE(0);
526527

527528
struct hash
528529
{

0 commit comments

Comments
 (0)