summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp
index 876a0d54..ebb1ea22 100644
--- a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp
@@ -236,8 +236,6 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& _E
if (SupportsFeatures2)
{
void** NextExt = const_cast<void**>(&DeviceCreateInfo.pNext);
- *NextExt = nullptr;
-
if (EngineCI.Features.MeshShaders != DEVICE_FEATURE_STATE_DISABLED)
{
MeshShaderFeats = PhysicalDevice->GetExtFeatures().MeshShader;
@@ -249,6 +247,7 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& _E
NextExt = &MeshShaderFeats.pNext;
}
}
+ *NextExt = nullptr;
}
if (EngineCI.Features.MeshShaders == DEVICE_FEATURE_STATE_ENABLED && !MeshShadersSupported)