From 653559979cd047522df75b9641052e0e18289e31 Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Fri, 4 Oct 2024 14:05:45 +0300 Subject: [PATCH] [d3d8] Fix LookupSubresource texture type typo --- src/d3d8/d3d8_texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d8/d3d8_texture.h b/src/d3d8/d3d8_texture.h index 44f1d060a..7f57bb68a 100644 --- a/src/d3d8/d3d8_texture.h +++ b/src/d3d8/d3d8_texture.h @@ -93,7 +93,7 @@ namespace dxvk { HRESULT res = D3DERR_INVALIDCALL; if constexpr (std::is_same_v) { res = this->GetD3D9()->GetSurfaceLevel(Index, &ptr); - } else if constexpr (std::is_same_v) { + } else if constexpr (std::is_same_v) { res = this->GetD3D9()->GetVolumeLevel(Index, &ptr); } else if constexpr (std::is_same_v) { res = this->GetD3D9()->GetCubeMapSurface(d3d9::D3DCUBEMAP_FACES(Index % CUBE_FACES), Index / CUBE_FACES, &ptr);