summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-09-22 19:38:57 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-09-22 19:38:57 +0000
commit50fb7db60a55a629b41d353ef6c55dbf23dd72e3 (patch)
tree772c6c936f8bba86164d4d448ad7d9e97fe3897e /Graphics/GraphicsEngineVulkan
parentFixed bug in mesh shader feature detection (diff)
downloadDiligentCore-50fb7db60a55a629b41d353ef6c55dbf23dd72e3.tar.gz
DiligentCore-50fb7db60a55a629b41d353ef6c55dbf23dd72e3.zip
Another minor fix
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)