From 7706dcb7cd2a70f9dcce3824f8b3d54338823636 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sun, 24 Jan 2016 00:30:00 +0100 Subject: [PATCH] d3d12: Compare mipmap level count when checking texture compatibility. --- rpcs3/Emu/RSX/D3D12/D3D12MemoryHelpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12MemoryHelpers.h b/rpcs3/Emu/RSX/D3D12/D3D12MemoryHelpers.h index 3e9af2d640..55ec86f75e 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12MemoryHelpers.h +++ b/rpcs3/Emu/RSX/D3D12/D3D12MemoryHelpers.h @@ -138,12 +138,12 @@ struct texture_entry texture_entry() : m_format(0), m_width(0), m_height(0), m_is_dirty(true) {} - texture_entry(u8 f, size_t w, size_t h, size_t m) : m_format(f), m_width(w), m_height(h), m_is_dirty(false) + texture_entry(u8 f, size_t w, size_t h, size_t m) : m_format(f), m_width(w), m_height(h), m_is_dirty(false), m_mipmap(m) {} bool operator==(const texture_entry &other) { - return (m_format == other.m_format && m_width == other.m_width && m_height == other.m_height); + return (m_format == other.m_format && m_width == other.m_width && m_height == other.m_height && m_mipmap == other.m_mipmap); } };