summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-09-29 19:52:55 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-09-29 19:52:55 +0000
commit0d20de05385f89a607ee479d5a63511c9e35beaa (patch)
tree4702b5c24f236179f452362d4146dc7cb28ea1cf /Graphics/GraphicsEngineVulkan
parentFixed issue in Quaternion::RotationFromAxisAngle when axis is null (diff)
downloadDiligentCore-0d20de05385f89a607ee479d5a63511c9e35beaa.tar.gz
DiligentCore-0d20de05385f89a607ee479d5a63511c9e35beaa.zip
Vulkan backend: fixed minor issue in CommitScissorRects()
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
index dd186277..7103818f 100644
--- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
@@ -974,6 +974,9 @@ namespace Diligent
{
VERIFY(m_pPipelineState && m_pPipelineState->GetDesc().GraphicsPipeline.RasterizerDesc.ScissorEnable, "Scissor test must be enabled in the graphics pipeline");
+ if (m_NumScissorRects == 0)
+ return; // Scissors have not been set in the context yet
+
VkRect2D VkScissorRects[MaxViewports]; // Do not waste time initializing array with zeroes
for (Uint32 sr = 0; sr < m_NumScissorRects; ++sr)
{