Skip to content

Commit 8ee0104

Browse files
wermandoitsujin
authored andcommitted
[dxvk] Fix DxvkShaderPipelineLibraryKey::eq
It always returned true when comparing with empty key, resulting in library from createNullFsPipelineLibrary()->compilePipeline() being returned for non-empty key on some platforms. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
1 parent 5d62622 commit 8ee0104

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/dxvk/dxvk_shader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ namespace dxvk {
153153

154154
bool DxvkShaderPipelineLibraryKey::eq(
155155
const DxvkShaderPipelineLibraryKey& other) const {
156+
if (m_shaders.size() != other.m_shaders.size())
157+
return false;
158+
156159
bool eq = true;
157160

158161
for (uint32_t i = 0; i < m_shaders.size() && eq; i++)

0 commit comments

Comments
 (0)