mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[dxvk] Fix inefficient check in bindVertexBuffer
This commit is contained in:
parent
dfc0b740f8
commit
2c641566ab
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user