From cd63cebc63c3bf840bb14c6b82ad551e29b278f2 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 24 Apr 2019 23:16:52 +0200 Subject: [PATCH] [dxvk] Simplify validateGraphicsState --- src/dxvk/dxvk_context.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 587e9bdf4..37f4e835d 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -3732,13 +3732,8 @@ namespace dxvk { bool DxvkContext::validateGraphicsState() { - if (m_gpActivePipeline == VK_NULL_HANDLE) - return false; - - if (!m_flags.test(DxvkContextFlag::GpRenderPassBound)) - return false; - - return true; + return m_gpActivePipeline != VK_NULL_HANDLE + && m_flags.test(DxvkContextFlag::GpRenderPassBound); }