1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxvk] Fix inefficient check in bindVertexBuffer

This commit is contained in:
Philip Rebohle 2020-07-10 16:19:17 +02:00
parent dfc0b740f8
commit 2c641566ab
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -235,8 +235,8 @@ namespace dxvk {
m_state.vi.vertexBuffers[binding] = buffer;
m_flags.set(DxvkContextFlag::GpDirtyVertexBuffers);
if (unlikely(!m_features.test(DxvkContextFeature::NullDescriptors))
&& unlikely(!buffer.defined()))
if (unlikely(!buffer.defined())
&& unlikely(!m_features.test(DxvkContextFeature::NullDescriptors)))
stride = 0;
if (unlikely(m_state.vi.vertexStrides[binding] != stride)) {