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:
parent
981ea547f9
commit
cd63cebc63
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user