mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-18 13:37:11 +00:00
Don't set optimisation level until we have replay options on Vulkan
This commit is contained in:
@@ -162,8 +162,6 @@ WrappedVulkan::WrappedVulkan() : m_RenderState(this, &m_CreationInfo)
|
||||
{
|
||||
m_FrameCaptureRecord = NULL;
|
||||
|
||||
m_ResourceManager->SetOptimisationLevel(m_ReplayOptions.optimisation);
|
||||
|
||||
ResourceIDGen::SetReplayResourceIDs();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,6 +177,8 @@ ReplayStatus WrappedVulkan::Initialise(VkInitParams ¶ms, uint64_t sectionVer
|
||||
m_SectionVersion = sectionVersion;
|
||||
m_ReplayOptions = opts;
|
||||
|
||||
m_ResourceManager->SetOptimisationLevel(m_ReplayOptions.optimisation);
|
||||
|
||||
StripUnwantedLayers(params.Layers);
|
||||
StripUnwantedExtensions(params.Extensions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user