Skip to content

Commit 281f778

Browse files
Use LoadAndGetArchiverFactory function
1 parent 38eade4 commit 281f778

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

RenderStatePackager/src/ParsingEnvironment.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,9 @@ bool ParsingEnvironment::Initialize()
7474
{
7575
try
7676
{
77-
#if EXPLICITLY_LOAD_ARCHIVER_FACTORY_DLL
78-
auto GetArchiverFactory = LoadArchiverFactory();
79-
m_pArchiveBuilderFactory = GetArchiverFactory();
77+
m_pArchiveBuilderFactory = LoadAndGetArchiverFactory();
8078
if (m_pArchiveBuilderFactory == nullptr)
8179
LOG_ERROR_AND_THROW("Failed to load archive factory");
82-
#else
83-
m_pArchiveBuilderFactory = Diligent::GetArchiverFactory();
84-
#endif
8580

8681
DynamicLinearAllocator Allocator{DefaultRawMemoryAllocator::GetAllocator()};
8782
SerializationDeviceCreateInfo DeviceCI = {};

0 commit comments

Comments
 (0)