Skip to content

Commit

Permalink
[d3d8] Fix cubemap mips
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Feb 23, 2023
1 parent 9e253ad commit 4bd9ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d8/d3d8_texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ namespace dxvk {
}

HRESULT STDMETHODCALLTYPE GetCubeMapSurface(D3DCUBEMAP_FACES Face, UINT Level, IDirect3DSurface8** ppSurfaceLevel) {
return GetSubresource(Level + (Face * GetLevelCount()), ppSurfaceLevel);
return GetSubresource((Level * CUBE_FACES) + Face, ppSurfaceLevel);
}

HRESULT STDMETHODCALLTYPE LockRect(
Expand Down

0 comments on commit 4bd9ce5

Please sign in to comment.