fix DDS mip level loader

main
cosmonaut 2022-05-14 10:31:56 -07:00
parent 2bd88e1dc1
commit dd3fb75905
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ namespace MoonWorks.Graphics
{ {
for (int j = 0; j < levels; j += 1) for (int j = 0; j < levels; j += 1)
{ {
var levelWidth = width >> i; var levelWidth = width >> j;
var levelHeight = height >> i; var levelHeight = height >> j;
var pixels = reader.ReadBytes( var pixels = reader.ReadBytes(
Texture.CalculateDDSLevelSize( Texture.CalculateDDSLevelSize(