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);