summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/vk-shader-object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/vk-shader-object.cpp')
-rw-r--r--tools/gfx/vulkan/vk-shader-object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/vulkan/vk-shader-object.cpp b/tools/gfx/vulkan/vk-shader-object.cpp
index 77707eac0..37edd8efa 100644
--- a/tools/gfx/vulkan/vk-shader-object.cpp
+++ b/tools/gfx/vulkan/vk-shader-object.cpp
@@ -920,7 +920,7 @@ Result ShaderObjectImpl::bindOrdinaryDataBufferIfNeeded(
// the given `descriptorSet` and update the base range index for
// subsequent binding operations to account for it.
//
- if (m_constantBuffer)
+ if (m_constantBuffer && m_constantBufferSize > 0)
{
auto bufferImpl = static_cast<BufferResourceImpl*>(m_constantBuffer);
writeBufferDescriptor(