Skip to content

Commit

Permalink
Fixes depth calculation for MipMap views of 3D textures (#2375)
Browse files Browse the repository at this point in the history
Co-authored-by: tebjan <tebjan@gmail.com>
  • Loading branch information
tebjan and tebjan authored Jul 8, 2024
1 parent d49ca78 commit 3797e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/engine/Stride.Graphics/Texture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ internal void GetViewSliceBounds(ViewType viewType, ref int arrayOrDepthIndex, r
mipCount = this.MipLevels;
break;
case ViewType.Single:
arrayOrDepthCount = 1;
arrayOrDepthCount = ViewDimension == TextureDimension.Texture3D ? CalculateMipSize(Depth, mipIndex) : 1;
mipCount = 1;
break;
case ViewType.MipBand:
Expand Down

0 comments on commit 3797e5d

Please sign in to comment.