1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Simplify validateGraphicsState

This commit is contained in:
Philip Rebohle 2019-04-24 23:16:52 +02:00
parent 981ea547f9
commit cd63cebc63

View File

@ -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);
}